home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / lisp / simple.elc < prev    next >
Emacs Compiled Lisp  |  1994-09-03  |  58.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 53 61 74 20 | 53 65 70 20 20 33 20 31 | on Sat |Sep 3 1|
|00000040| 39 3a 33 34 3a 35 30 20 | 31 39 39 34 0a 3b 3b 3b |9:34:50 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 73 69 6d 70 6c 65 | 2e 65 6c 0a 3b 3b 3b 20 |p/simple|.el.;;; |
|00000080| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|00000090| 2e 32 35 2e 39 34 2e 31 | 2e 0a 3b 3b 3b 20 62 79 |.25.94.1|..;;; by|
|000000a0| 74 65 63 6f 6d 70 20 76 | 65 72 73 69 6f 6e 20 46 |tecomp v|ersion F|
|000000b0| 53 46 20 32 2e 31 30 0a | 3b 3b 3b 20 6f 70 74 69 |SF 2.10.|;;; opti|
|000000c0| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|000000d0| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|000000e0| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|000000f0| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000100| 20 45 6d 61 63 73 20 31 | 38 2e 0a 0a 28 69 66 20 | Emacs 1|8...(if |
|00000110| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000120| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000130| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000140| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|00000150| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|00000160| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|00000170| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|00000180| 6f 6e 20 22 31 39 22 29 | 29 29 0a 20 20 20 20 28 |on "19")|)). (|
|00000190| 65 72 72 6f 72 20 22 60 | 2f 68 6f 6d 65 2f 66 73 |error "`|/home/fs|
|000001a0| 66 2f 72 6d 73 2f 65 31 | 39 2f 6c 69 73 70 2f 73 |f/rms/e1|9/lisp/s|
|000001b0| 69 6d 70 6c 65 2e 65 6c | 27 20 77 61 73 20 63 6f |imple.el|' was co|
|000001c0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001d0| 20 31 39 22 29 29 0a 0a | 28 64 65 66 61 6c 69 61 | 19"))..|(defalia|
|000001e0| 73 20 27 6f 70 65 6e 2d | 6c 69 6e 65 20 23 5b 28 |s 'open-|line #[(|
|000001f0| 61 72 67 29 20 22 08 85 | 05 00 6e 89 19 3f 85 11 |arg) "..|..n..?..|
|00000200| 00 6e 85 11 00 6f 3f 89 | 1a 83 23 00 0b c4 3d 84 |.n...o?.|..#...=.|
|00000210| 20 00 60 0b 42 13 c5 75 | 88 8a 0e 06 c7 56 83 3e | .`.B..u|.....V.>|
|00000220| 00 09 83 32 00 08 63 88 | c8 63 88 0e 06 53 89 16 |...2..c.|.c...S..|
|00000230| 06 82 26 00 29 c9 7f 88 | 5c 6e 85 48 00 ca 75 2a |..&.)...|\n.H..u*|
|00000240| 87 22 20 5b 66 69 6c 6c | 2d 70 72 65 66 69 78 20 |." [fill|-prefix |
|00000250| 64 6f 2d 66 69 6c 6c 2d | 70 72 65 66 69 78 20 66 |do-fill-|prefix f|
|00000260| 6c 61 67 20 62 75 66 66 | 65 72 2d 75 6e 64 6f 2d |lag buff|er-undo-|
|00000270| 6c 69 73 74 20 74 20 2d | 31 20 61 72 67 20 30 20 |list t -|1 arg 0 |
|00000280| 31 30 20 6e 69 6c 20 31 | 5d 20 33 20 22 5c 0a 49 |10 nil 1|] 3 "\.I|
|00000290| 6e 73 65 72 74 20 61 20 | 6e 65 77 6c 69 6e 65 20 |nsert a |newline |
|000002a0| 61 6e 64 20 6c 65 61 76 | 65 20 70 6f 69 6e 74 20 |and leav|e point |
|000002b0| 62 65 66 6f 72 65 20 69 | 74 2e 0a 49 66 20 74 68 |before i|t..If th|
|000002c0| 65 72 65 20 69 73 20 61 | 20 66 69 6c 6c 20 70 72 |ere is a| fill pr|
|000002d0| 65 66 69 78 2c 20 69 6e | 73 65 72 74 20 74 68 65 |efix, in|sert the|
|000002e0| 20 66 69 6c 6c 20 70 72 | 65 66 69 78 20 6f 6e 20 | fill pr|efix on |
|000002f0| 74 68 65 20 6e 65 77 20 | 6c 69 6e 65 0a 69 66 20 |the new |line.if |
|00000300| 74 68 65 20 6c 69 6e 65 | 20 77 6f 75 6c 64 20 68 |the line| would h|
|00000310| 61 76 65 20 62 65 65 6e | 20 65 6d 70 74 79 2e 0a |ave been| empty..|
|00000320| 57 69 74 68 20 61 72 67 | 20 4e 2c 20 69 6e 73 65 |With arg| N, inse|
|00000330| 72 74 20 4e 20 6e 65 77 | 6c 69 6e 65 73 2e 22 20 |rt N new|lines." |
|00000340| 22 2a 70 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |"*p"]).(|defalias|
|00000350| 20 27 73 70 6c 69 74 2d | 6c 69 6e 65 20 23 5b 6e | 'split-|line #[n|
|00000360| 69 6c 20 22 c0 c1 77 88 | 69 60 1a 1b c4 63 88 c5 |il "..w.|i`...c..|
|00000370| 0b c6 5c 22 88 5c 6e 62 | 2a 87 22 20 5b 22 20 09 |..\".\nb|*." [" .|
|00000380| 22 20 6e 69 6c 20 70 6f | 73 20 63 6f 6c 20 31 30 |" nil po|s col 10|
|00000390| 20 69 6e 64 65 6e 74 2d | 74 6f 20 30 5d 20 33 20 | indent-|to 0] 3 |
|000003a0| 22 5c 0a 53 70 6c 69 74 | 20 63 75 72 72 65 6e 74 |"\.Split| current|
|000003b0| 20 6c 69 6e 65 2c 20 6d | 6f 76 69 6e 67 20 70 6f | line, m|oving po|
|000003c0| 72 74 69 6f 6e 20 62 65 | 79 6f 6e 64 20 70 6f 69 |rtion be|yond poi|
|000003d0| 6e 74 20 76 65 72 74 69 | 63 61 6c 6c 79 20 64 6f |nt verti|cally do|
|000003e0| 77 6e 2e 22 20 22 2a 22 | 5d 29 0a 28 64 65 66 61 |wn." "*"|]).(defa|
|000003f0| 6c 69 61 73 20 27 71 75 | 6f 74 65 64 2d 69 6e 73 |lias 'qu|oted-ins|
|00000400| 65 72 74 20 23 5b 28 61 | 72 67 29 20 22 08 83 5c |ert #[(a|rg) "..\|
|00000410| 6e 00 08 c1 3d 83 0f 00 | c2 20 82 11 00 c3 20 1c |n...=...|. .... .|
|00000420| 08 c1 3d 83 1d 00 c5 0e | 06 21 88 c7 5c 66 0e 06 |..=.....|.!..\f..|
|00000430| 5c 22 29 87 22 20 5b 6f | 76 65 72 77 72 69 74 65 |\")." [o|verwrite|
|00000440| 2d 6d 6f 64 65 20 6f 76 | 65 72 77 72 69 74 65 2d |-mode ov|erwrite-|
|00000450| 6d 6f 64 65 2d 62 69 6e | 61 72 79 20 72 65 61 64 |mode-bin|ary read|
|00000460| 2d 71 75 6f 74 65 64 2d | 63 68 61 72 20 72 65 61 |-quoted-|char rea|
|00000470| 64 2d 63 68 61 72 20 63 | 68 61 72 20 64 65 6c 65 |d-char c|har dele|
|00000480| 74 65 2d 63 68 61 72 20 | 61 72 67 20 69 6e 73 65 |te-char |arg inse|
|00000490| 72 74 2d 63 68 61 72 5d | 20 33 20 22 5c 0a 52 65 |rt-char]| 3 "\.Re|
|000004a0| 61 64 20 6e 65 78 74 20 | 69 6e 70 75 74 20 63 68 |ad next |input ch|
|000004b0| 61 72 61 63 74 65 72 20 | 61 6e 64 20 69 6e 73 65 |aracter |and inse|
|000004c0| 72 74 20 69 74 2e 0a 54 | 68 69 73 20 69 73 20 75 |rt it..T|his is u|
|000004d0| 73 65 66 75 6c 20 66 6f | 72 20 69 6e 73 65 72 74 |seful fo|r insert|
|000004e0| 69 6e 67 20 63 6f 6e 74 | 72 6f 6c 20 63 68 61 72 |ing cont|rol char|
|000004f0| 61 63 74 65 72 73 2e 0a | 59 6f 75 20 6d 61 79 20 |acters..|You may |
|00000500| 61 6c 73 6f 20 74 79 70 | 65 20 75 70 20 74 6f 20 |also typ|e up to |
|00000510| 33 20 6f 63 74 61 6c 20 | 64 69 67 69 74 73 2c 20 |3 octal |digits, |
|00000520| 74 6f 20 69 6e 73 65 72 | 74 20 61 20 63 68 61 72 |to inser|t a char|
|00000530| 61 63 74 65 72 20 77 69 | 74 68 20 74 68 61 74 20 |acter wi|th that |
|00000540| 63 6f 64 65 2e 0a 0a 49 | 6e 20 6f 76 65 72 77 72 |code...I|n overwr|
|00000550| 69 74 65 20 6d 6f 64 65 | 2c 20 74 68 69 73 20 66 |ite mode|, this f|
|00000560| 75 6e 63 74 69 6f 6e 20 | 69 6e 73 65 72 74 73 20 |unction |inserts |
|00000570| 74 68 65 20 63 68 61 72 | 61 63 74 65 72 20 61 6e |the char|acter an|
|00000580| 79 77 61 79 2c 20 61 6e | 64 0a 64 6f 65 73 20 6e |yway, an|d.does n|
|00000590| 6f 74 20 68 61 6e 64 6c | 65 20 6f 63 74 61 6c 20 |ot handl|e octal |
|000005a0| 64 69 67 69 74 73 20 73 | 70 65 63 69 61 6c 6c 79 |digits s|pecially|
|000005b0| 2e 20 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |. This |means th|
|000005c0| 61 74 20 69 66 20 79 6f | 75 20 75 73 65 0a 6f 76 |at if yo|u use.ov|
|000005d0| 65 72 77 72 69 74 65 20 | 61 73 20 79 6f 75 72 20 |erwrite |as your |
|000005e0| 6e 6f 72 6d 61 6c 20 65 | 64 69 74 69 6e 67 20 6d |normal e|diting m|
|000005f0| 6f 64 65 2c 20 79 6f 75 | 20 63 61 6e 20 75 73 65 |ode, you| can use|
|00000600| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 74 | this fu|nction t|
|00000610| 6f 0a 69 6e 73 65 72 74 | 20 63 68 61 72 61 63 74 |o.insert| charact|
|00000620| 65 72 73 20 77 68 65 6e | 20 6e 65 63 65 73 73 61 |ers when| necessa|
|00000630| 72 79 2e 0a 0a 49 6e 20 | 62 69 6e 61 72 79 20 6f |ry...In |binary o|
|00000640| 76 65 72 77 72 69 74 65 | 20 6d 6f 64 65 2c 20 74 |verwrite| mode, t|
|00000650| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 64 6f 65 |his func|tion doe|
|00000660| 73 20 6f 76 65 72 77 72 | 69 74 65 2c 20 61 6e 64 |s overwr|ite, and|
|00000670| 20 6f 63 74 61 6c 0a 64 | 69 67 69 74 73 20 61 72 | octal.d|igits ar|
|00000680| 65 20 69 6e 74 65 72 70 | 72 65 74 65 64 20 61 73 |e interp|reted as|
|00000690| 20 61 20 63 68 61 72 61 | 63 74 65 72 20 63 6f 64 | a chara|cter cod|
|000006a0| 65 2e 20 20 54 68 69 73 | 20 69 73 20 73 75 70 70 |e. This| is supp|
|000006b0| 6f 73 65 64 20 74 6f 20 | 6d 61 6b 65 0a 74 68 69 |osed to |make.thi|
|000006c0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 75 73 65 66 75 |s functi|on usefu|
|000006d0| 6c 20 69 6e 20 65 64 69 | 74 69 6e 67 20 62 69 6e |l in edi|ting bin|
|000006e0| 61 72 79 20 66 69 6c 65 | 73 2e 22 20 22 2a 70 22 |ary file|s." "*p"|
|000006f0| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 64 65 |]).(defa|lias 'de|
|00000700| 6c 65 74 65 2d 69 6e 64 | 65 6e 74 61 74 69 6f 6e |lete-ind|entation|
|00000710| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|00000720| 67 29 20 22 c0 79 88 09 | 83 5c 6e 00 c2 79 88 68 |g) ".y..|.\n..y.h|
|00000730| c3 3d 85 36 00 60 60 53 | 7c 88 5c 66 83 34 00 60 |.=.6.``S||.\f.4.`|
|00000740| 5c 66 47 5c 5c 64 58 83 | 34 00 5c 66 60 60 5c 66 |\fG\\dX.|4.\f``\f|
|00000750| 47 5c 5c 7b 98 83 34 00 | 60 60 5c 66 47 5c 5c 7c |G\\{..4.|``\fG\\||
|00000760| 88 c5 20 87 22 20 5b 30 | 20 61 72 67 20 31 20 31 |.. ." [0| arg 1 1|
|00000770| 30 20 66 69 6c 6c 2d 70 | 72 65 66 69 78 20 66 69 |0 fill-p|refix fi|
|00000780| 78 75 70 2d 77 68 69 74 | 65 73 70 61 63 65 5d 20 |xup-whit|espace] |
|00000790| 34 20 22 5c 0a 4a 6f 69 | 6e 20 74 68 69 73 20 6c |4 "\.Joi|n this l|
|000007a0| 69 6e 65 20 74 6f 20 70 | 72 65 76 69 6f 75 73 20 |ine to p|revious |
|000007b0| 61 6e 64 20 66 69 78 20 | 75 70 20 77 68 69 74 65 |and fix |up white|
|000007c0| 73 70 61 63 65 20 61 74 | 20 6a 6f 69 6e 2e 0a 49 |space at| join..I|
|000007d0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 66 69 6c |f there |is a fil|
|000007e0| 6c 20 70 72 65 66 69 78 | 2c 20 64 65 6c 65 74 65 |l prefix|, delete|
|000007f0| 20 69 74 20 66 72 6f 6d | 20 74 68 65 20 62 65 67 | it from| the beg|
|00000800| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 69 73 20 6c |inning o|f this l|
|00000810| 69 6e 65 2e 0a 57 69 74 | 68 20 61 72 67 75 6d 65 |ine..Wit|h argume|
|00000820| 6e 74 2c 20 6a 6f 69 6e | 20 74 68 69 73 20 6c 69 |nt, join| this li|
|00000830| 6e 65 20 74 6f 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |ne to fo|llowing |
|00000840| 6c 69 6e 65 2e 22 20 22 | 2a 50 22 5d 29 0a 28 64 |line." "|*P"]).(d|
|00000850| 65 66 61 6c 69 61 73 20 | 27 66 69 78 75 70 2d 77 |efalias |'fixup-w|
|00000860| 68 69 74 65 73 70 61 63 | 65 20 23 5b 6e 69 6c 20 |hitespac|e #[nil |
|00000870| 22 8a c0 20 88 c1 c2 21 | 86 12 00 8a c3 75 88 c1 |".. ...!|.....u..|
|00000880| c4 21 29 3f 85 18 00 c5 | 63 29 87 22 20 5b 64 65 |.!)?....|c)." [de|
|00000890| 6c 65 74 65 2d 68 6f 72 | 69 7a 6f 6e 74 61 6c 2d |lete-hor|izontal-|
|000008a0| 73 70 61 63 65 20 6c 6f | 6f 6b 69 6e 67 2d 61 74 |space lo|oking-at|
|000008b0| 20 22 5e 5c 5c 7c 5c 5c | 73 29 22 20 2d 31 20 22 | "^\\|\\|s)" -1 "|
|000008c0| 24 5c 5c 7c 5c 5c 73 28 | 5c 5c 7c 5c 5c 73 27 22 |$\\|\\s(|\\|\\s'"|
|000008d0| 20 33 32 5d 20 32 20 22 | 5c 0a 46 69 78 75 70 20 | 32] 2 "|\.Fixup |
|000008e0| 77 68 69 74 65 20 73 70 | 61 63 65 20 62 65 74 77 |white sp|ace betw|
|000008f0| 65 65 6e 20 6f 62 6a 65 | 63 74 73 20 61 72 6f 75 |een obje|cts arou|
|00000900| 6e 64 20 70 6f 69 6e 74 | 2e 0a 4c 65 61 76 65 20 |nd point|..Leave |
|00000910| 6f 6e 65 20 73 70 61 63 | 65 20 6f 72 20 6e 6f 6e |one spac|e or non|
|00000920| 65 2c 20 61 63 63 6f 72 | 64 69 6e 67 20 74 6f 20 |e, accor|ding to |
|00000930| 74 68 65 20 63 6f 6e 74 | 65 78 74 2e 22 20 22 2a |the cont|ext." "*|
|00000940| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 64 |"]).(def|alias 'd|
|00000950| 65 6c 65 74 65 2d 68 6f | 72 69 7a 6f 6e 74 61 6c |elete-ho|rizontal|
|00000960| 2d 73 70 61 63 65 20 23 | 5b 6e 69 6c 20 22 c0 c1 |-space #|[nil "..|
|00000970| 78 88 60 c0 c1 77 88 60 | 7c 87 22 20 5b 22 20 09 |x.`..w.`||." [" .|
|00000980| 22 20 6e 69 6c 5d 20 33 | 20 22 5c 0a 44 65 6c 65 |" nil] 3| "\.Dele|
|00000990| 74 65 20 61 6c 6c 20 73 | 70 61 63 65 73 20 61 6e |te all s|paces an|
|000009a0| 64 20 74 61 62 73 20 61 | 72 6f 75 6e 64 20 70 6f |d tabs a|round po|
|000009b0| 69 6e 74 2e 22 20 22 2a | 22 5d 29 0a 28 64 65 66 |int." "*|"]).(def|
|000009c0| 61 6c 69 61 73 20 27 6a | 75 73 74 2d 6f 6e 65 2d |alias 'j|ust-one-|
|000009d0| 73 70 61 63 65 20 23 5b | 6e 69 6c 20 22 c0 c1 78 |space #[|nil "..x|
|000009e0| 88 67 c2 55 83 10 00 c3 | 75 88 82 13 00 c2 63 88 |.g.U....|u.....c.|
|000009f0| 60 c0 c1 77 88 60 7c 87 | 22 20 5b 22 20 09 22 20 |`..w.`|.|" [" ." |
|00000a00| 6e 69 6c 20 33 32 20 31 | 5d 20 33 20 22 5c 0a 44 |nil 32 1|] 3 "\.D|
|00000a10| 65 6c 65 74 65 20 61 6c | 6c 20 73 70 61 63 65 73 |elete al|l spaces|
|00000a20| 20 61 6e 64 20 74 61 62 | 73 20 61 72 6f 75 6e 64 | and tab|s around|
|00000a30| 20 70 6f 69 6e 74 2c 20 | 6c 65 61 76 69 6e 67 20 | point, |leaving |
|00000a40| 6f 6e 65 20 73 70 61 63 | 65 2e 22 20 22 2a 22 5d |one spac|e." "*"]|
|00000a50| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 64 65 6c |).(defal|ias 'del|
|00000a60| 65 74 65 2d 62 6c 61 6e | 6b 2d 6c 69 6e 65 73 20 |ete-blan|k-lines |
|00000a70| 23 5b 6e 69 6c 20 22 c0 | 89 19 1a 8a c3 79 88 c4 |#[nil ".|.....y..|
|00000a80| c5 21 89 12 85 5c 22 00 | c4 c6 21 3f 85 5c 22 00 |.!...\".|..!?.\".|
|00000a90| 6f 86 5c 22 00 c7 79 88 | c4 c5 21 3f 11 29 5c 6e |o.\"..y.|..!?.)\n|
|00000aa0| 83 45 00 c3 79 88 09 83 | 32 00 c8 79 88 60 c9 ca |.E..y...|2..y.`..|
|00000ab0| c0 cb 23 83 42 00 c8 79 | 88 60 82 43 00 65 7c 88 |..#.B..y|.`.C.e|.|
|00000ac0| 5c 6e 83 4d 00 09 84 68 | 00 8a c0 7f 88 c8 79 88 |\n.M...h|......y.|
|00000ad0| 60 cc ca c0 cb 23 83 64 | 00 c3 79 88 60 82 65 00 |`....#.d|..y.`.e.|
|00000ae0| 64 7c 88 29 c4 cd 21 85 | 71 00 60 64 7c 2a 87 22 |d|.)..!.|q.`d|*."|
|00000af0| 20 5b 6e 69 6c 20 73 69 | 6e 67 6c 65 62 6c 61 6e | [nil si|ngleblan|
|00000b00| 6b 20 74 68 69 73 62 6c | 61 6e 6b 20 30 20 6c 6f |k thisbl|ank 0 lo|
|00000b10| 6f 6b 69 6e 67 2d 61 74 | 20 22 5b 20 09 5d 2a 24 |oking-at| "[ .]*$|
|00000b20| 22 20 22 5b 20 09 5d 2a | 5c 6e 5b 20 09 5d 2a 24 |" "[ .]*|\n[ .]*$|
|00000b30| 22 20 2d 31 20 31 20 72 | 65 2d 73 65 61 72 63 68 |" -1 1 r|e-search|
|00000b40| 2d 62 61 63 6b 77 61 72 | 64 20 22 5b 5e 20 09 5c |-backwar|d "[^ .\|
|00000b50| 6e 5d 22 20 74 20 72 65 | 2d 73 65 61 72 63 68 2d |n]" t re|-search-|
|00000b60| 66 6f 72 77 61 72 64 20 | 22 5e 5b 20 09 5d 2a 5c |forward |"^[ .]*\|
|00000b70| 6e 5c 5c 27 22 5d 20 36 | 20 22 5c 0a 4f 6e 20 62 |n\\'"] 6| "\.On b|
|00000b80| 6c 61 6e 6b 20 6c 69 6e | 65 2c 20 64 65 6c 65 74 |lank lin|e, delet|
|00000b90| 65 20 61 6c 6c 20 73 75 | 72 72 6f 75 6e 64 69 6e |e all su|rroundin|
|00000ba0| 67 20 62 6c 61 6e 6b 20 | 6c 69 6e 65 73 2c 20 6c |g blank |lines, l|
|00000bb0| 65 61 76 69 6e 67 20 6a | 75 73 74 20 6f 6e 65 2e |eaving j|ust one.|
|00000bc0| 0a 4f 6e 20 69 73 6f 6c | 61 74 65 64 20 62 6c 61 |.On isol|ated bla|
|00000bd0| 6e 6b 20 6c 69 6e 65 2c | 20 64 65 6c 65 74 65 20 |nk line,| delete |
|00000be0| 74 68 61 74 20 6f 6e 65 | 2e 0a 4f 6e 20 6e 6f 6e |that one|..On non|
|00000bf0| 62 6c 61 6e 6b 20 6c 69 | 6e 65 2c 20 64 65 6c 65 |blank li|ne, dele|
|00000c00| 74 65 20 61 6e 79 20 69 | 6d 6d 65 64 69 61 74 65 |te any i|mmediate|
|00000c10| 6c 79 20 66 6f 6c 6c 6f | 77 69 6e 67 20 62 6c 61 |ly follo|wing bla|
|00000c20| 6e 6b 20 6c 69 6e 65 73 | 2e 22 20 22 2a 22 5d 29 |nk lines|." "*"])|
|00000c30| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 62 61 63 6b |.(defali|as 'back|
|00000c40| 2d 74 6f 2d 69 6e 64 65 | 6e 74 61 74 69 6f 6e 20 |-to-inde|ntation |
|00000c50| 23 5b 6e 69 6c 20 22 c0 | 79 88 c1 c2 77 87 22 20 |#[nil ".|y...w." |
|00000c60| 5b 30 20 22 20 09 22 20 | 6e 69 6c 5d 20 32 20 22 |[0 " ." |nil] 2 "|
|00000c70| 5c 0a 4d 6f 76 65 20 70 | 6f 69 6e 74 20 74 6f 20 |\.Move p|oint to |
|00000c80| 74 68 65 20 66 69 72 73 | 74 20 6e 6f 6e 2d 77 68 |the firs|t non-wh|
|00000c90| 69 74 65 73 70 61 63 65 | 20 63 68 61 72 61 63 74 |itespace| charact|
|00000ca0| 65 72 20 6f 6e 20 74 68 | 69 73 20 6c 69 6e 65 2e |er on th|is line.|
|00000cb0| 22 20 6e 69 6c 5d 29 0a | 28 64 65 66 61 6c 69 61 |" nil]).|(defalia|
|00000cc0| 73 20 27 6e 65 77 6c 69 | 6e 65 2d 61 6e 64 2d 69 |s 'newli|ne-and-i|
|00000cd0| 6e 64 65 6e 74 20 23 5b | 6e 69 6c 20 22 60 c0 c1 |ndent #[|nil "`..|
|00000ce0| 78 88 60 7c 88 c2 20 88 | c3 20 87 22 20 5b 22 20 |x.`|.. .|. ." [" |
|00000cf0| 09 22 20 6e 69 6c 20 6e | 65 77 6c 69 6e 65 20 69 |." nil n|ewline i|
|00000d00| 6e 64 65 6e 74 2d 61 63 | 63 6f 72 64 69 6e 67 2d |ndent-ac|cording-|
|00000d10| 74 6f 2d 6d 6f 64 65 5d | 20 33 20 22 5c 0a 49 6e |to-mode]| 3 "\.In|
|00000d20| 73 65 72 74 20 61 20 6e | 65 77 6c 69 6e 65 2c 20 |sert a n|ewline, |
|00000d30| 74 68 65 6e 20 69 6e 64 | 65 6e 74 20 61 63 63 6f |then ind|ent acco|
|00000d40| 72 64 69 6e 67 20 74 6f | 20 6d 61 6a 6f 72 20 6d |rding to| major m|
|00000d50| 6f 64 65 2e 0a 49 6e 64 | 65 6e 74 61 74 69 6f 6e |ode..Ind|entation|
|00000d60| 20 69 73 20 64 6f 6e 65 | 20 75 73 69 6e 67 20 74 | is done| using t|
|00000d70| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 60 69 6e 64 |he value| of `ind|
|00000d80| 65 6e 74 2d 6c 69 6e 65 | 2d 66 75 6e 63 74 69 6f |ent-line|-functio|
|00000d90| 6e 27 2e 0a 49 6e 20 70 | 72 6f 67 72 61 6d 6d 69 |n'..In p|rogrammi|
|00000da0| 6e 67 20 6c 61 6e 67 75 | 61 67 65 20 6d 6f 64 65 |ng langu|age mode|
|00000db0| 73 2c 20 74 68 69 73 20 | 69 73 20 74 68 65 20 73 |s, this |is the s|
|00000dc0| 61 6d 65 20 61 73 20 54 | 41 42 2e 0a 49 6e 20 73 |ame as T|AB..In s|
|00000dd0| 6f 6d 65 20 74 65 78 74 | 20 6d 6f 64 65 73 2c 20 |ome text| modes, |
|00000de0| 77 68 65 72 65 20 54 41 | 42 20 69 6e 73 65 72 74 |where TA|B insert|
|00000df0| 73 20 61 20 74 61 62 2c | 20 74 68 69 73 20 63 6f |s a tab,| this co|
|00000e00| 6d 6d 61 6e 64 20 69 6e | 64 65 6e 74 73 20 74 6f |mmand in|dents to|
|00000e10| 20 74 68 65 0a 63 6f 6c | 75 6d 6e 20 73 70 65 63 | the.col|umn spec|
|00000e20| 69 66 69 65 64 20 62 79 | 20 74 68 65 20 76 61 72 |ified by| the var|
|00000e30| 69 61 62 6c 65 20 60 6c | 65 66 74 2d 6d 61 72 67 |iable `l|eft-marg|
|00000e40| 69 6e 27 2e 22 20 22 2a | 22 5d 29 0a 28 64 65 66 |in'." "*|"]).(def|
|00000e50| 61 6c 69 61 73 20 27 72 | 65 69 6e 64 65 6e 74 2d |alias 'r|eindent-|
|00000e60| 74 68 65 6e 2d 6e 65 77 | 6c 69 6e 65 2d 61 6e 64 |then-new|line-and|
|00000e70| 2d 69 6e 64 65 6e 74 20 | 23 5b 6e 69 6c 20 22 8a |-indent |#[nil ".|
|00000e80| 60 c0 c1 78 88 60 7c 88 | c2 20 88 29 c3 20 88 c2 |`..x.`|.|. .). ..|
|00000e90| 20 87 22 20 5b 22 20 09 | 22 20 6e 69 6c 20 69 6e | ." [" .|" nil in|
|00000ea0| 64 65 6e 74 2d 61 63 63 | 6f 72 64 69 6e 67 2d 74 |dent-acc|ording-t|
|00000eb0| 6f 2d 6d 6f 64 65 20 6e | 65 77 6c 69 6e 65 5d 20 |o-mode n|ewline] |
|00000ec0| 33 20 22 5c 0a 52 65 69 | 6e 64 65 6e 74 20 63 75 |3 "\.Rei|ndent cu|
|00000ed0| 72 72 65 6e 74 20 6c 69 | 6e 65 2c 20 69 6e 73 65 |rrent li|ne, inse|
|00000ee0| 72 74 20 6e 65 77 6c 69 | 6e 65 2c 20 74 68 65 6e |rt newli|ne, then|
|00000ef0| 20 69 6e 64 65 6e 74 20 | 74 68 65 20 6e 65 77 20 | indent |the new |
|00000f00| 6c 69 6e 65 2e 0a 49 6e | 64 65 6e 74 61 74 69 6f |line..In|dentatio|
|00000f10| 6e 20 6f 66 20 62 6f 74 | 68 20 6c 69 6e 65 73 20 |n of bot|h lines |
|00000f20| 69 73 20 64 6f 6e 65 20 | 61 63 63 6f 72 64 69 6e |is done |accordin|
|00000f30| 67 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |g to the| current|
|00000f40| 20 6d 61 6a 6f 72 20 6d | 6f 64 65 2c 0a 77 68 69 | major m|ode,.whi|
|00000f50| 63 68 20 6d 65 61 6e 73 | 20 63 61 6c 6c 69 6e 67 |ch means| calling|
|00000f60| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 76 61 6c | the cur|rent val|
|00000f70| 75 65 20 6f 66 20 60 69 | 6e 64 65 6e 74 2d 6c 69 |ue of `i|ndent-li|
|00000f80| 6e 65 2d 66 75 6e 63 74 | 69 6f 6e 27 2e 0a 49 6e |ne-funct|ion'..In|
|00000f90| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 6c 61 6e | program|ming lan|
|00000fa0| 67 75 61 67 65 20 6d 6f | 64 65 73 2c 20 74 68 69 |guage mo|des, thi|
|00000fb0| 73 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |s is the| same as|
|00000fc0| 20 54 41 42 2e 0a 49 6e | 20 73 6f 6d 65 20 74 65 | TAB..In| some te|
|00000fd0| 78 74 20 6d 6f 64 65 73 | 2c 20 77 68 65 72 65 20 |xt modes|, where |
|00000fe0| 54 41 42 20 69 6e 73 65 | 72 74 73 20 61 20 74 61 |TAB inse|rts a ta|
|00000ff0| 62 2c 20 74 68 69 73 20 | 69 6e 64 65 6e 74 73 20 |b, this |indents |
|00001000| 74 6f 20 74 68 65 0a 63 | 6f 6c 75 6d 6e 20 73 70 |to the.c|olumn sp|
|00001010| 65 63 69 66 69 65 64 20 | 62 79 20 74 68 65 20 76 |ecified |by the v|
|00001020| 61 72 69 61 62 6c 65 20 | 60 6c 65 66 74 2d 6d 61 |ariable |`left-ma|
|00001030| 72 67 69 6e 27 2e 22 20 | 22 2a 22 5d 29 0a 28 62 |rgin'." |"*"]).(b|
|00001040| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 c2 5c 22 88 |yte-code| "...\".|
|00001050| c0 c3 c4 5c 22 87 22 20 | 5b 64 65 66 61 6c 69 61 |...\"." |[defalia|
|00001060| 73 20 6b 69 6c 6c 2d 66 | 6f 72 77 61 72 64 2d 63 |s kill-f|orward-c|
|00001070| 68 61 72 73 20 23 5b 28 | 61 72 67 29 20 22 08 3c |hars #[(|arg) ".<|
|00001080| 83 08 00 08 40 10 08 c1 | 3d 83 10 00 c2 10 c3 60 |....@...|=......`|
|00001090| 60 08 5c 5c 5c 22 87 22 | 20 5b 61 72 67 20 2d 20 |`.\\\"."| [arg - |
|000010a0| 2d 31 20 6b 69 6c 6c 2d | 72 65 67 69 6f 6e 5d 20 |-1 kill-|region] |
|000010b0| 34 5d 20 6b 69 6c 6c 2d | 62 61 63 6b 77 61 72 64 |4] kill-|backward|
|000010c0| 2d 63 68 61 72 73 20 23 | 5b 28 61 72 67 29 20 22 |-chars #|[(arg) "|
|000010d0| 08 3c 83 08 00 08 40 10 | 08 c1 3d 83 10 00 c2 10 |.<....@.|..=.....|
|000010e0| c3 60 60 08 5a 5c 22 87 | 22 20 5b 61 72 67 20 2d |.``.Z\".|" [arg -|
|000010f0| 20 2d 31 20 6b 69 6c 6c | 2d 72 65 67 69 6f 6e 5d | -1 kill|-region]|
|00001100| 20 34 5d 5d 20 33 29 0a | 28 64 65 66 61 6c 69 61 | 4]] 3).|(defalia|
|00001110| 73 20 27 62 61 63 6b 77 | 61 72 64 2d 64 65 6c 65 |s 'backw|ard-dele|
|00001120| 74 65 2d 63 68 61 72 2d | 75 6e 74 61 62 69 66 79 |te-char-|untabify|
|00001130| 20 23 5b 28 61 72 67 20 | 26 6f 70 74 69 6f 6e 61 | #[(arg |&optiona|
|00001140| 6c 20 6b 69 6c 6c 70 29 | 20 22 08 19 8a 09 c2 56 |l killp)| ".....V|
|00001150| 83 30 00 6f 84 30 00 68 | c3 55 83 26 00 69 1c c5 |.0.o.0.h|.U.&.i..|
|00001160| 75 88 5c 66 69 5a 14 c6 | c7 5c 66 5c 22 88 c8 c9 |u.\fiZ..|.\f\"...|
|00001170| 21 88 29 c5 75 88 09 53 | 89 11 82 04 00 2a ca 08 |!.).u..S|.....*..|
|00001180| 0e 0b 5c 22 88 0e 5c 66 | 85 47 00 6c 3f 85 47 00 |..\"..\f|.G.l?.G.|
|00001190| 8a c6 c7 08 5c 22 29 87 | 22 20 5b 61 72 67 20 63 |....\").|" [arg c|
|000011a0| 6f 75 6e 74 20 30 20 39 | 20 63 6f 6c 20 2d 31 20 |ount 0 9| col -1 |
|000011b0| 69 6e 73 65 72 74 2d 63 | 68 61 72 20 33 32 20 64 |insert-c|har 32 d|
|000011c0| 65 6c 65 74 65 2d 63 68 | 61 72 20 31 20 64 65 6c |elete-ch|ar 1 del|
|000011d0| 65 74 65 2d 62 61 63 6b | 77 61 72 64 2d 63 68 61 |ete-back|ward-cha|
|000011e0| 72 20 6b 69 6c 6c 70 20 | 6f 76 65 72 77 72 69 74 |r killp |overwrit|
|000011f0| 65 2d 6d 6f 64 65 5d 20 | 34 20 22 5c 0a 44 65 6c |e-mode] |4 "\.Del|
|00001200| 65 74 65 20 63 68 61 72 | 61 63 74 65 72 73 20 62 |ete char|acters b|
|00001210| 61 63 6b 77 61 72 64 2c | 20 63 68 61 6e 67 69 6e |ackward,| changin|
|00001220| 67 20 74 61 62 73 20 69 | 6e 74 6f 20 73 70 61 63 |g tabs i|nto spac|
|00001230| 65 73 2e 0a 44 65 6c 65 | 74 65 20 41 52 47 20 63 |es..Dele|te ARG c|
|00001240| 68 61 72 73 2c 20 61 6e | 64 20 6b 69 6c 6c 20 28 |hars, an|d kill (|
|00001250| 73 61 76 65 20 69 6e 20 | 6b 69 6c 6c 20 72 69 6e |save in |kill rin|
|00001260| 67 29 20 69 66 20 4b 49 | 4c 4c 50 20 69 73 20 6e |g) if KI|LLP is n|
|00001270| 6f 6e 2d 6e 69 6c 2e 0a | 49 6e 74 65 72 61 63 74 |on-nil..|Interact|
|00001280| 69 76 65 6c 79 2c 20 41 | 52 47 20 69 73 20 74 68 |ively, A|RG is th|
|00001290| 65 20 70 72 65 66 69 78 | 20 61 72 67 20 28 64 65 |e prefix| arg (de|
|000012a0| 66 61 75 6c 74 20 31 29 | 0a 61 6e 64 20 4b 49 4c |fault 1)|.and KIL|
|000012b0| 4c 50 20 69 73 20 74 20 | 69 66 20 61 20 70 72 65 |LP is t |if a pre|
|000012c0| 66 69 78 20 61 72 67 20 | 77 61 73 20 73 70 65 63 |fix arg |was spec|
|000012d0| 69 66 69 65 64 2e 22 20 | 22 2a 70 5c 6e 50 22 5d |ified." |"*p\nP"]|
|000012e0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 7a 61 70 |).(defal|ias 'zap|
|000012f0| 2d 74 6f 2d 63 68 61 72 | 20 23 5b 28 61 72 67 20 |-to-char| #[(arg |
|00001300| 63 68 61 72 29 20 22 c0 | 60 c1 c2 0b 21 c4 89 0d |char) ".|`...!...|
|00001310| 24 88 60 5c 22 87 22 20 | 5b 6b 69 6c 6c 2d 72 65 |$.`\"." |[kill-re|
|00001320| 67 69 6f 6e 20 73 65 61 | 72 63 68 2d 66 6f 72 77 |gion sea|rch-forw|
|00001330| 61 72 64 20 63 68 61 72 | 2d 74 6f 2d 73 74 72 69 |ard char|-to-stri|
|00001340| 6e 67 20 63 68 61 72 20 | 6e 69 6c 20 61 72 67 5d |ng char |nil arg]|
|00001350| 20 37 20 22 5c 0a 4b 69 | 6c 6c 20 75 70 20 74 6f | 7 "\.Ki|ll up to|
|00001360| 20 61 6e 64 20 69 6e 63 | 6c 75 64 69 6e 67 20 41 | and inc|luding A|
|00001370| 52 47 27 74 68 20 6f 63 | 63 75 72 72 65 6e 63 65 |RG'th oc|currence|
|00001380| 20 6f 66 20 43 48 41 52 | 2e 0a 47 6f 65 73 20 62 | of CHAR|..Goes b|
|00001390| 61 63 6b 77 61 72 64 20 | 69 66 20 41 52 47 20 69 |ackward |if ARG i|
|000013a0| 73 20 6e 65 67 61 74 69 | 76 65 3b 20 65 72 72 6f |s negati|ve; erro|
|000013b0| 72 20 69 66 20 43 48 41 | 52 20 6e 6f 74 20 66 6f |r if CHA|R not fo|
|000013c0| 75 6e 64 2e 22 20 22 70 | 5c 6e 63 5a 61 70 20 74 |und." "p|\ncZap t|
|000013d0| 6f 20 63 68 61 72 3a 20 | 22 5d 29 0a 28 64 65 66 |o char: |"]).(def|
|000013e0| 61 6c 69 61 73 20 27 62 | 65 67 69 6e 6e 69 6e 67 |alias 'b|eginning|
|000013f0| 2d 6f 66 2d 62 75 66 66 | 65 72 20 23 5b 28 26 6f |-of-buff|er #[(&o|
|00001400| 70 74 69 6f 6e 61 6c 20 | 61 72 67 29 20 22 c0 20 |ptional |arg) ". |
|00001410| 88 09 83 26 00 c2 20 c3 | 56 83 19 00 c4 09 21 c2 |...&.. .|V.....!.|
|00001420| 20 c5 a5 5f 82 27 00 c2 | 20 c4 09 21 5f c5 5c 5c | .._.'..| ..!_.\\|
|00001430| c5 a5 82 27 00 65 62 88 | 09 85 2f 00 c6 79 87 22 |...'.eb.|../..y."|
|00001440| 20 5b 70 75 73 68 2d 6d | 61 72 6b 20 61 72 67 20 | [push-m|ark arg |
|00001450| 62 75 66 66 65 72 2d 73 | 69 7a 65 20 31 30 30 30 |buffer-s|ize 1000|
|00001460| 30 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |0 prefix|-numeric|
|00001470| 2d 76 61 6c 75 65 20 31 | 30 20 31 5d 20 33 20 22 |-value 1|0 1] 3 "|
|00001480| 5c 0a 4d 6f 76 65 20 70 | 6f 69 6e 74 20 74 6f 20 |\.Move p|oint to |
|00001490| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|000014a0| 20 74 68 65 20 62 75 66 | 66 65 72 3b 20 6c 65 61 | the buf|fer; lea|
|000014b0| 76 65 20 6d 61 72 6b 20 | 61 74 20 70 72 65 76 69 |ve mark |at previ|
|000014c0| 6f 75 73 20 70 6f 73 69 | 74 69 6f 6e 2e 0a 57 69 |ous posi|tion..Wi|
|000014d0| 74 68 20 61 72 67 20 4e | 2c 20 70 75 74 20 70 6f |th arg N|, put po|
|000014e0| 69 6e 74 20 4e 2f 31 30 | 20 6f 66 20 74 68 65 20 |int N/10| of the |
|000014f0| 77 61 79 20 66 72 6f 6d | 20 74 68 65 20 74 72 75 |way from| the tru|
|00001500| 65 20 62 65 67 69 6e 6e | 69 6e 67 2e 0a 0a 44 6f |e beginn|ing...Do|
|00001510| 6e 27 74 20 75 73 65 20 | 74 68 69 73 20 63 6f 6d |n't use |this com|
|00001520| 6d 61 6e 64 20 69 6e 20 | 4c 69 73 70 20 70 72 6f |mand in |Lisp pro|
|00001530| 67 72 61 6d 73 21 0a 28 | 67 6f 74 6f 2d 63 68 61 |grams!.(|goto-cha|
|00001540| 72 20 28 70 6f 69 6e 74 | 2d 6d 69 6e 29 29 20 69 |r (point|-min)) i|
|00001550| 73 20 66 61 73 74 65 72 | 20 61 6e 64 20 61 76 6f |s faster| and avo|
|00001560| 69 64 73 20 63 6c 6f 62 | 62 65 72 69 6e 67 20 74 |ids clob|bering t|
|00001570| 68 65 20 6d 61 72 6b 2e | 22 20 22 50 22 5d 29 0a |he mark.|" "P"]).|
|00001580| 28 64 65 66 61 6c 69 61 | 73 20 27 65 6e 64 2d 6f |(defalia|s 'end-o|
|00001590| 66 2d 62 75 66 66 65 72 | 20 23 5b 28 26 6f 70 74 |f-buffer| #[(&opt|
|000015a0| 69 6f 6e 61 6c 20 61 72 | 67 29 20 22 c0 20 88 09 |ional ar|g) ". ..|
|000015b0| 83 28 00 c2 20 54 c2 20 | c3 56 83 1c 00 c4 09 21 |.(.. T. |.V.....!|
|000015c0| c2 20 c5 a5 5f 82 24 00 | c2 20 c4 09 21 5f c5 a5 |. .._.$.|. ..!_..|
|000015d0| 5a 82 29 00 64 62 88 09 | 83 32 00 c6 79 87 60 1e |Z.).db..|.2..y.`.|
|000015e0| 07 8a c8 20 62 88 c9 ca | 20 21 88 60 0e 07 57 2a |... b...| !.`..W*|
|000015f0| 85 4e 00 cb 60 21 88 cc | cd 21 87 22 20 5b 70 75 |.N..`!..|.!." [pu|
|00001600| 73 68 2d 6d 61 72 6b 20 | 61 72 67 20 62 75 66 66 |sh-mark |arg buff|
|00001610| 65 72 2d 73 69 7a 65 20 | 31 30 30 30 30 20 70 72 |er-size |10000 pr|
|00001620| 65 66 69 78 2d 6e 75 6d | 65 72 69 63 2d 76 61 6c |efix-num|eric-val|
|00001630| 75 65 20 31 30 20 31 20 | 6f 6c 64 2d 70 6f 69 6e |ue 10 1 |old-poin|
|00001640| 74 20 77 69 6e 64 6f 77 | 2d 73 74 61 72 74 20 76 |t window|-start v|
|00001650| 65 72 74 69 63 61 6c 2d | 6d 6f 74 69 6f 6e 20 77 |ertical-|motion w|
|00001660| 69 6e 64 6f 77 2d 68 65 | 69 67 68 74 20 6f 76 65 |indow-he|ight ove|
|00001670| 72 6c 61 79 2d 72 65 63 | 65 6e 74 65 72 20 72 65 |rlay-rec|enter re|
|00001680| 63 65 6e 74 65 72 20 2d | 33 5d 20 34 20 22 5c 0a |center -|3] 4 "\.|
|00001690| 4d 6f 76 65 20 70 6f 69 | 6e 74 20 74 6f 20 74 68 |Move poi|nt to th|
|000016a0| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 62 75 66 |e end of| the buf|
|000016b0| 66 65 72 3b 20 6c 65 61 | 76 65 20 6d 61 72 6b 20 |fer; lea|ve mark |
|000016c0| 61 74 20 70 72 65 76 69 | 6f 75 73 20 70 6f 73 69 |at previ|ous posi|
|000016d0| 74 69 6f 6e 2e 0a 57 69 | 74 68 20 61 72 67 20 4e |tion..Wi|th arg N|
|000016e0| 2c 20 70 75 74 20 70 6f | 69 6e 74 20 4e 2f 31 30 |, put po|int N/10|
|000016f0| 20 6f 66 20 74 68 65 20 | 77 61 79 20 66 72 6f 6d | of the |way from|
|00001700| 20 74 68 65 20 74 72 75 | 65 20 65 6e 64 2e 0a 0a | the tru|e end...|
|00001710| 44 6f 6e 27 74 20 75 73 | 65 20 74 68 69 73 20 63 |Don't us|e this c|
|00001720| 6f 6d 6d 61 6e 64 20 69 | 6e 20 4c 69 73 70 20 70 |ommand i|n Lisp p|
|00001730| 72 6f 67 72 61 6d 73 21 | 0a 28 67 6f 74 6f 2d 63 |rograms!|.(goto-c|
|00001740| 68 61 72 20 28 70 6f 69 | 6e 74 2d 6d 61 78 29 29 |har (poi|nt-max))|
|00001750| 20 69 73 20 66 61 73 74 | 65 72 20 61 6e 64 20 61 | is fast|er and a|
|00001760| 76 6f 69 64 73 20 63 6c | 6f 62 62 65 72 69 6e 67 |voids cl|obbering|
|00001770| 20 74 68 65 20 6d 61 72 | 6b 2e 22 20 22 50 22 5d | the mar|k." "P"]|
|00001780| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 6d 61 72 |).(defal|ias 'mar|
|00001790| 6b 2d 77 68 6f 6c 65 2d | 62 75 66 66 65 72 20 23 |k-whole-|buffer #|
|000017a0| 5b 6e 69 6c 20 22 c0 60 | 21 88 c0 64 c1 c2 23 88 |[nil ".`|!..d..#.|
|000017b0| 65 62 87 22 20 5b 70 75 | 73 68 2d 6d 61 72 6b 20 |eb." [pu|sh-mark |
|000017c0| 6e 69 6c 20 74 5d 20 34 | 20 22 5c 0a 50 75 74 20 |nil t] 4| "\.Put |
|000017d0| 70 6f 69 6e 74 20 61 74 | 20 62 65 67 69 6e 6e 69 |point at| beginni|
|000017e0| 6e 67 20 61 6e 64 20 6d | 61 72 6b 20 61 74 20 65 |ng and m|ark at e|
|000017f0| 6e 64 20 6f 66 20 62 75 | 66 66 65 72 2e 0a 59 6f |nd of bu|ffer..Yo|
|00001800| 75 20 70 72 6f 62 61 62 | 6c 79 20 73 68 6f 75 6c |u probab|ly shoul|
|00001810| 64 20 6e 6f 74 20 75 73 | 65 20 74 68 69 73 20 66 |d not us|e this f|
|00001820| 75 6e 63 74 69 6f 6e 20 | 69 6e 20 4c 69 73 70 20 |unction |in Lisp |
|00001830| 70 72 6f 67 72 61 6d 73 | 3b 0a 69 74 20 69 73 20 |programs|;.it is |
|00001840| 75 73 75 61 6c 6c 79 20 | 61 20 6d 69 73 74 61 6b |usually |a mistak|
|00001850| 65 20 66 6f 72 20 61 20 | 4c 69 73 70 20 66 75 6e |e for a |Lisp fun|
|00001860| 63 74 69 6f 6e 20 74 6f | 20 75 73 65 20 61 6e 79 |ction to| use any|
|00001870| 20 73 75 62 72 6f 75 74 | 69 6e 65 0a 74 68 61 74 | subrout|ine.that|
|00001880| 20 75 73 65 73 20 6f 72 | 20 73 65 74 73 20 74 68 | uses or| sets th|
|00001890| 65 20 6d 61 72 6b 2e 22 | 20 6e 69 6c 5d 29 0a 28 |e mark."| nil]).(|
|000018a0| 64 65 66 61 6c 69 61 73 | 20 27 63 6f 75 6e 74 2d |defalias| 'count-|
|000018b0| 6c 69 6e 65 73 2d 72 65 | 67 69 6f 6e 20 23 5b 28 |lines-re|gion #[(|
|000018c0| 73 74 61 72 74 20 65 6e | 64 29 20 22 c0 c1 c2 0b |start en|d) "....|
|000018d0| 5c 66 5c 22 5c 66 0b 5a | 23 87 22 20 5b 6d 65 73 |\f\"\f.Z|#." [mes|
|000018e0| 73 61 67 65 20 22 52 65 | 67 69 6f 6e 20 68 61 73 |sage "Re|gion has|
|000018f0| 20 25 64 20 6c 69 6e 65 | 73 2c 20 25 64 20 63 68 | %d line|s, %d ch|
|00001900| 61 72 61 63 74 65 72 73 | 22 20 63 6f 75 6e 74 2d |aracters|" count-|
|00001910| 6c 69 6e 65 73 20 73 74 | 61 72 74 20 65 6e 64 5d |lines st|art end]|
|00001920| 20 35 20 22 5c 0a 50 72 | 69 6e 74 20 6e 75 6d 62 | 5 "\.Pr|int numb|
|00001930| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 61 6e 64 20 |er of li|nes and |
|00001940| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00001950| 65 20 72 65 67 69 6f 6e | 2e 22 20 22 72 22 5d 29 |e region|." "r"])|
|00001960| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 77 68 61 74 |.(defali|as 'what|
|00001970| 2d 6c 69 6e 65 20 23 5b | 6e 69 6c 20 22 8c 7e 88 |-line #[|nil ".~.|
|00001980| 8a c0 79 88 c1 c2 c3 c4 | 60 5c 22 54 5c 22 2a 87 |..y.....|`\"T\"*.|
|00001990| 22 20 5b 30 20 6d 65 73 | 73 61 67 65 20 22 4c 69 |" [0 mes|sage "Li|
|000019a0| 6e 65 20 25 64 22 20 63 | 6f 75 6e 74 2d 6c 69 6e |ne %d" c|ount-lin|
|000019b0| 65 73 20 31 5d 20 35 20 | 22 5c 0a 50 72 69 6e 74 |es 1] 5 |"\.Print|
|000019c0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|000019d0| 65 20 6e 75 6d 62 65 72 | 20 28 69 6e 20 74 68 65 |e number| (in the|
|000019e0| 20 62 75 66 66 65 72 29 | 20 6f 66 20 70 6f 69 6e | buffer)| of poin|
|000019f0| 74 2e 22 20 6e 69 6c 5d | 29 0a 28 64 65 66 61 6c |t." nil]|).(defal|
|00001a00| 69 61 73 20 27 63 6f 75 | 6e 74 2d 6c 69 6e 65 73 |ias 'cou|nt-lines|
|00001a10| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 29 20 22 | #[(star|t end) "|
|00001a20| c0 20 19 c2 8e 8a 8c 0b | 5c 66 7d 88 65 62 88 0d |. ......|\f}.eb..|
|00001a30| c6 3d 83 54 00 c7 1e 08 | c9 ca cb c6 cc 24 83 29 |.=.T....|.....$.)|
|00001a40| 00 0e 08 cc 5c 5c 16 08 | 82 17 00 c9 ca cb c6 cd |....\\..|........|
|00001a50| 24 83 3b 00 0e 08 cd 5c | 5c 16 08 82 29 00 64 62 |$.;....\|\...).db|
|00001a60| 88 0b 5c 66 55 84 4e 00 | 6e 84 4e 00 0e 08 54 82 |..\fU.N.|n.N...T.|
|00001a70| 50 00 0e 08 29 82 5a 00 | ce 20 ce 20 79 5a 2c 87 |P...).Z.|. . yZ,.|
|00001a80| 22 20 5b 6d 61 74 63 68 | 2d 64 61 74 61 20 6d 61 |" [match|-data ma|
|00001a90| 74 63 68 2d 64 61 74 61 | 20 28 28 73 74 6f 72 65 |tch-data| ((store|
|00001aa0| 2d 6d 61 74 63 68 2d 64 | 61 74 61 20 6d 61 74 63 |-match-d|ata matc|
|00001ab0| 68 2d 64 61 74 61 29 29 | 20 73 74 61 72 74 20 65 |h-data))| start e|
|00001ac0| 6e 64 20 73 65 6c 65 63 | 74 69 76 65 2d 64 69 73 |nd selec|tive-dis|
|00001ad0| 70 6c 61 79 20 74 20 30 | 20 64 6f 6e 65 20 72 65 |play t 0| done re|
|00001ae0| 2d 73 65 61 72 63 68 2d | 66 6f 72 77 61 72 64 20 |-search-|forward |
|00001af0| 22 5b 5c 6e 0d 5d 22 20 | 6e 69 6c 20 34 30 20 31 |"[\n.]" |nil 40 1|
|00001b00| 20 62 75 66 66 65 72 2d | 73 69 7a 65 5d 20 35 20 | buffer-|size] 5 |
|00001b10| 22 5c 0a 52 65 74 75 72 | 6e 20 6e 75 6d 62 65 72 |"\.Retur|n number|
|00001b20| 20 6f 66 20 6c 69 6e 65 | 73 20 62 65 74 77 65 65 | of line|s betwee|
|00001b30| 6e 20 53 54 41 52 54 20 | 61 6e 64 20 45 4e 44 2e |n START |and END.|
|00001b40| 0a 54 68 69 73 20 69 73 | 20 75 73 75 61 6c 6c 79 |.This is| usually|
|00001b50| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6e | the num|ber of n|
|00001b60| 65 77 6c 69 6e 65 73 20 | 62 65 74 77 65 65 6e 20 |ewlines |between |
|00001b70| 74 68 65 6d 2c 0a 62 75 | 74 20 63 61 6e 20 62 65 |them,.bu|t can be|
|00001b80| 20 6f 6e 65 20 6d 6f 72 | 65 20 69 66 20 53 54 41 | one mor|e if STA|
|00001b90| 52 54 20 69 73 20 6e 6f | 74 20 65 71 75 61 6c 20 |RT is no|t equal |
|00001ba0| 74 6f 20 45 4e 44 0a 61 | 6e 64 20 74 68 65 20 67 |to END.a|nd the g|
|00001bb0| 72 65 61 74 65 72 20 6f | 66 20 74 68 65 6d 20 69 |reater o|f them i|
|00001bc0| 73 20 6e 6f 74 20 61 74 | 20 74 68 65 20 73 74 61 |s not at| the sta|
|00001bd0| 72 74 20 6f 66 20 61 20 | 6c 69 6e 65 2e 22 5d 29 |rt of a |line."])|
|00001be0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 77 68 61 74 |.(defali|as 'what|
|00001bf0| 2d 63 75 72 73 6f 72 2d | 70 6f 73 69 74 69 6f 6e |-cursor-|position|
|00001c00| 20 23 5b 6e 69 6c 20 22 | 67 18 65 19 64 1a 60 1b | #[nil "|g.e.d.`.|
|00001c10| c4 20 89 1d c6 56 83 20 | 00 0d c7 a5 0b 53 5c 5c |. ...V. |.....S\\|
|00001c20| 0d c8 a5 c9 5d a5 82 2c | 00 0d ca a5 0b 53 c8 5f |....]..,|.....S._|
|00001c30| 5c 5c 0d c9 5d a5 1e 0b | cc 20 cd 55 83 39 00 ce |\\..]...|. .U.9..|
|00001c40| 82 3e 00 cf d0 cc 20 5c | 22 1e 11 69 1e 12 0b 5c |.>.... \|"..i...\|
|00001c50| 6e 55 83 76 00 09 c9 55 | 83 56 00 5c 6e 0d 54 55 |nU.v...U|.V.\n.TU|
|00001c60| 84 67 00 d3 d4 0b 0d 0e | 0b 09 5c 6e 0e 12 0e 11 |.g......|..\n....|
|00001c70| 26 08 82 a8 00 d3 d5 0b | 0d 0e 0b 0e 12 0e 11 26 |&.......|.......&|
|00001c80| 06 82 a8 00 09 c9 55 83 | 83 00 5c 6e 0d 54 55 84 |......U.|..\n.TU.|
|00001c90| 98 00 d3 d6 d7 08 21 08 | 0b 0d 0e 0b 09 5c 6e 0e |......!.|.....\n.|
|00001ca0| 12 0e 11 26 5c 6e 82 a8 | 00 d3 d8 d7 08 21 08 0b |...&\n..|.....!..|
|00001cb0| 0d 0e 0b 0e 12 0e 11 26 | 08 2e 08 87 22 20 5b 63 |.......&|...." [c|
|00001cc0| 68 61 72 20 62 65 67 20 | 65 6e 64 20 70 6f 73 20 |har beg |end pos |
|00001cd0| 62 75 66 66 65 72 2d 73 | 69 7a 65 20 74 6f 74 61 |buffer-s|ize tota|
|00001ce0| 6c 20 35 30 30 30 30 20 | 32 30 30 20 31 30 30 20 |l 50000 |200 100 |
|00001cf0| 31 20 32 20 70 65 72 63 | 65 6e 74 20 77 69 6e 64 |1 2 perc|ent wind|
|00001d00| 6f 77 2d 68 73 63 72 6f | 6c 6c 20 30 20 22 22 20 |ow-hscro|ll 0 "" |
|00001d10| 66 6f 72 6d 61 74 20 22 | 20 48 73 63 72 6f 6c 6c |format "| Hscroll|
|00001d20| 3d 25 64 22 20 68 73 63 | 72 6f 6c 6c 20 63 6f 6c |=%d" hsc|roll col|
|00001d30| 20 6d 65 73 73 61 67 65 | 20 22 70 6f 69 6e 74 3d | message| "point=|
|00001d40| 25 64 20 6f 66 20 25 64 | 28 25 64 25 25 29 20 3c |%d of %d|(%d%%) <|
|00001d50| 25 64 20 2d 20 25 64 3e | 20 20 63 6f 6c 75 6d 6e |%d - %d>| column|
|00001d60| 20 25 64 20 25 73 22 20 | 22 70 6f 69 6e 74 3d 25 | %d %s" |"point=%|
|00001d70| 64 20 6f 66 20 25 64 28 | 25 64 25 25 29 20 20 63 |d of %d(|%d%%) c|
|00001d80| 6f 6c 75 6d 6e 20 25 64 | 20 25 73 22 20 22 43 68 |olumn %d| %s" "Ch|
|00001d90| 61 72 3a 20 25 73 20 28 | 30 25 6f 29 20 20 70 6f |ar: %s (|0%o) po|
|00001da0| 69 6e 74 3d 25 64 20 6f | 66 20 25 64 28 25 64 25 |int=%d o|f %d(%d%|
|00001db0| 25 29 20 3c 25 64 20 2d | 20 25 64 3e 20 20 63 6f |%) <%d -| %d> co|
|00001dc0| 6c 75 6d 6e 20 25 64 20 | 25 73 22 20 73 69 6e 67 |lumn %d |%s" sing|
|00001dd0| 6c 65 2d 6b 65 79 2d 64 | 65 73 63 72 69 70 74 69 |le-key-d|escripti|
|00001de0| 6f 6e 20 22 43 68 61 72 | 3a 20 25 73 20 28 30 25 |on "Char|: %s (0%|
|00001df0| 6f 29 20 20 70 6f 69 6e | 74 3d 25 64 20 6f 66 20 |o) poin|t=%d of |
|00001e00| 25 64 28 25 64 25 25 29 | 20 20 63 6f 6c 75 6d 6e |%d(%d%%)| column|
|00001e10| 20 25 64 20 25 73 22 5d | 20 31 32 20 22 5c 0a 50 | %d %s"]| 12 "\.P|
|00001e20| 72 69 6e 74 20 69 6e 66 | 6f 20 6f 6e 20 63 75 72 |rint inf|o on cur|
|00001e30| 73 6f 72 20 70 6f 73 69 | 74 69 6f 6e 20 28 6f 6e |sor posi|tion (on|
|00001e40| 20 73 63 72 65 65 6e 20 | 61 6e 64 20 77 69 74 68 | screen |and with|
|00001e50| 69 6e 20 62 75 66 66 65 | 72 29 2e 22 20 6e 69 6c |in buffe|r)." nil|
|00001e60| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 66 75 |]).(defa|lias 'fu|
|00001e70| 6e 64 61 6d 65 6e 74 61 | 6c 2d 6d 6f 64 65 20 23 |ndamenta|l-mode #|
|00001e80| 5b 6e 69 6c 20 22 c0 20 | 87 22 20 5b 6b 69 6c 6c |[nil ". |." [kill|
|00001e90| 2d 61 6c 6c 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |-all-loc|al-varia|
|00001ea0| 62 6c 65 73 5d 20 31 20 | 22 5c 0a 4d 61 6a 6f 72 |bles] 1 |"\.Major|
|00001eb0| 20 6d 6f 64 65 20 6e 6f | 74 20 73 70 65 63 69 61 | mode no|t specia|
|00001ec0| 6c 69 7a 65 64 20 66 6f | 72 20 61 6e 79 74 68 69 |lized fo|r anythi|
|00001ed0| 6e 67 20 69 6e 20 70 61 | 72 74 69 63 75 6c 61 72 |ng in pa|rticular|
|00001ee0| 2e 0a 4f 74 68 65 72 20 | 6d 61 6a 6f 72 20 6d 6f |..Other |major mo|
|00001ef0| 64 65 73 20 61 72 65 20 | 64 65 66 69 6e 65 64 20 |des are |defined |
|00001f00| 62 79 20 63 6f 6d 70 61 | 72 69 73 6f 6e 20 77 69 |by compa|rison wi|
|00001f10| 74 68 20 74 68 69 73 20 | 6f 6e 65 2e 22 20 6e 69 |th this |one." ni|
|00001f20| 6c 5d 29 0a 28 64 65 66 | 76 61 72 20 72 65 61 64 |l]).(def|var read|
|00001f30| 2d 65 78 70 72 65 73 73 | 69 6f 6e 2d 6d 61 70 20 |-express|ion-map |
|00001f40| 28 63 6f 6e 73 20 28 71 | 75 6f 74 65 20 6b 65 79 |(cons (q|uote key|
|00001f50| 6d 61 70 29 20 6d 69 6e | 69 62 75 66 66 65 72 2d |map) min|ibuffer-|
|00001f60| 6c 6f 63 61 6c 2d 6d 61 | 70 29 20 22 5c 0a 4d 69 |local-ma|p) "\.Mi|
|00001f70| 6e 69 62 75 66 66 65 72 | 20 6b 65 79 6d 61 70 20 |nibuffer| keymap |
|00001f80| 75 73 65 64 20 66 6f 72 | 20 72 65 61 64 69 6e 67 |used for| reading|
|00001f90| 20 4c 69 73 70 20 65 78 | 70 72 65 73 73 69 6f 6e | Lisp ex|pression|
|00001fa0| 73 2e 22 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |s.").(by|te-code |
|00001fb0| 22 c0 09 c2 c3 23 88 c4 | c5 c6 c7 23 88 c8 c9 21 |"....#..|...#...!|
|00001fc0| 84 15 00 ca 16 09 ca 87 | 22 20 5b 64 65 66 69 6e |........|" [defin|
|00001fd0| 65 2d 6b 65 79 20 72 65 | 61 64 2d 65 78 70 72 65 |e-key re|ad-expre|
|00001fe0| 73 73 69 6f 6e 2d 6d 61 | 70 20 22 89 22 20 6c 69 |ssion-ma|p "." li|
|00001ff0| 73 70 2d 63 6f 6d 70 6c | 65 74 65 2d 73 79 6d 62 |sp-compl|ete-symb|
|00002000| 6f 6c 20 70 75 74 20 65 | 76 61 6c 2d 65 78 70 72 |ol put e|val-expr|
|00002010| 65 73 73 69 6f 6e 20 64 | 69 73 61 62 6c 65 64 20 |ession d|isabled |
|00002020| 74 20 62 6f 75 6e 64 70 | 20 72 65 61 64 2d 65 78 |t boundp| read-ex|
|00002030| 70 72 65 73 73 69 6f 6e | 2d 68 69 73 74 6f 72 79 |pression|-history|
|00002040| 20 6e 69 6c 5d 20 34 29 | 0a 28 64 65 66 61 6c 69 | nil] 4)|.(defali|
|00002050| 61 73 20 27 65 76 61 6c | 2d 65 78 70 72 65 73 73 |as 'eval|-express|
|00002060| 69 6f 6e 20 23 5b 28 65 | 78 70 72 65 73 73 69 6f |ion #[(e|xpressio|
|00002070| 6e 29 20 22 c0 09 21 5c | 6e 42 12 c3 5c 6e 40 c4 |n) "..!\|nB..\n@.|
|00002080| 5c 22 87 22 20 5b 65 76 | 61 6c 20 65 78 70 72 65 |\"." [ev|al expre|
|00002090| 73 73 69 6f 6e 20 76 61 | 6c 75 65 73 20 70 72 69 |ssion va|lues pri|
|000020a0| 6e 31 20 74 5d 20 33 20 | 22 5c 0a 45 76 61 6c 75 |n1 t] 3 |"\.Evalu|
|000020b0| 61 74 65 20 45 58 50 52 | 45 53 53 49 4f 4e 20 61 |ate EXPR|ESSION a|
|000020c0| 6e 64 20 70 72 69 6e 74 | 20 76 61 6c 75 65 20 69 |nd print| value i|
|000020d0| 6e 20 6d 69 6e 69 62 75 | 66 66 65 72 2e 0a 56 61 |n minibu|ffer..Va|
|000020e0| 6c 75 65 20 69 73 20 61 | 6c 73 6f 20 63 6f 6e 73 |lue is a|lso cons|
|000020f0| 65 64 20 6f 6e 20 74 6f | 20 66 72 6f 6e 74 20 6f |ed on to| front o|
|00002100| 66 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 60 |f the va|riable `|
|00002110| 76 61 6c 75 65 73 27 2e | 22 20 28 6c 69 73 74 20 |values'.|" (list |
|00002120| 28 72 65 61 64 2d 66 72 | 6f 6d 2d 6d 69 6e 69 62 |(read-fr|om-minib|
|00002130| 75 66 66 65 72 20 22 45 | 76 61 6c 3a 20 22 20 6e |uffer "E|val: " n|
|00002140| 69 6c 20 72 65 61 64 2d | 65 78 70 72 65 73 73 69 |il read-|expressi|
|00002150| 6f 6e 2d 6d 61 70 20 74 | 20 28 71 75 6f 74 65 20 |on-map t| (quote |
|00002160| 72 65 61 64 2d 65 78 70 | 72 65 73 73 69 6f 6e 2d |read-exp|ression-|
|00002170| 68 69 73 74 6f 72 79 29 | 29 29 5d 29 0a 28 64 65 |history)|))]).(de|
|00002180| 66 61 6c 69 61 73 20 27 | 65 64 69 74 2d 61 6e 64 |falias '|edit-and|
|00002190| 2d 65 76 61 6c 2d 63 6f | 6d 6d 61 6e 64 20 23 5b |-eval-co|mmand #[|
|000021a0| 28 70 72 6f 6d 70 74 20 | 63 6f 6d 6d 61 6e 64 29 |(prompt |command)|
|000021b0| 20 22 c0 09 c2 0b 21 5c | 66 c5 c6 25 1b c7 0b 21 | "....!\|f..%...!|
|000021c0| 29 87 22 20 5b 72 65 61 | 64 2d 66 72 6f 6d 2d 6d |)." [rea|d-from-m|
|000021d0| 69 6e 69 62 75 66 66 65 | 72 20 70 72 6f 6d 70 74 |inibuffe|r prompt|
|000021e0| 20 70 72 69 6e 31 2d 74 | 6f 2d 73 74 72 69 6e 67 | prin1-t|o-string|
|000021f0| 20 63 6f 6d 6d 61 6e 64 | 20 72 65 61 64 2d 65 78 | command| read-ex|
|00002200| 70 72 65 73 73 69 6f 6e | 2d 6d 61 70 20 74 20 28 |pression|-map t (|
|00002210| 63 6f 6d 6d 61 6e 64 2d | 68 69 73 74 6f 72 79 20 |command-|history |
|00002220| 2e 20 31 29 20 65 76 61 | 6c 5d 20 36 20 22 5c 0a |. 1) eva|l] 6 "\.|
|00002230| 50 72 6f 6d 70 74 69 6e | 67 20 77 69 74 68 20 50 |Promptin|g with P|
|00002240| 52 4f 4d 50 54 2c 20 6c | 65 74 20 75 73 65 72 20 |ROMPT, l|et user |
|00002250| 65 64 69 74 20 43 4f 4d | 4d 41 4e 44 20 61 6e 64 |edit COM|MAND and|
|00002260| 20 65 76 61 6c 20 72 65 | 73 75 6c 74 2e 0a 43 4f | eval re|sult..CO|
|00002270| 4d 4d 41 4e 44 20 69 73 | 20 61 20 4c 69 73 70 20 |MMAND is| a Lisp |
|00002280| 65 78 70 72 65 73 73 69 | 6f 6e 2e 20 20 4c 65 74 |expressi|on. Let|
|00002290| 20 75 73 65 72 20 65 64 | 69 74 20 74 68 61 74 20 | user ed|it that |
|000022a0| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 6e 0a 74 68 |expressi|on in.th|
|000022b0| 65 20 6d 69 6e 69 62 75 | 66 66 65 72 2c 20 74 68 |e minibu|ffer, th|
|000022c0| 65 6e 20 72 65 61 64 20 | 61 6e 64 20 65 76 61 6c |en read |and eval|
|000022d0| 75 61 74 65 20 74 68 65 | 20 72 65 73 75 6c 74 2e |uate the| result.|
|000022e0| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 72 |"]).(def|alias 'r|
|000022f0| 65 70 65 61 74 2d 63 6f | 6d 70 6c 65 78 2d 63 6f |epeat-co|mplex-co|
|00002300| 6d 6d 61 6e 64 20 23 5b | 28 61 72 67 29 20 22 08 |mmand #[|(arg) ".|
|00002310| 53 09 38 08 c2 c3 1c 1d | 1e 06 89 1e 07 83 39 00 |S.8.....|......9.|
|00002320| c8 c9 ca 0e 07 21 0e 0b | c2 c1 08 42 25 14 09 40 |.....!..|...B%..@|
|00002330| 3b 83 28 00 09 41 11 5c | 66 09 40 9a 84 33 00 5c |;.(..A.\|f.@..3.\|
|00002340| 66 09 42 11 cc 5c 66 21 | 82 3b 00 cd 20 2c 87 22 |f.B..\f!|.;.. ,."|
|00002350| 20 5b 61 72 67 20 63 6f | 6d 6d 61 6e 64 2d 68 69 | [arg co|mmand-hi|
|00002360| 73 74 6f 72 79 20 74 20 | 6e 69 6c 20 6e 65 77 63 |story t |nil newc|
|00002370| 6d 64 20 6d 69 6e 69 62 | 75 66 66 65 72 2d 68 69 |md minib|uffer-hi|
|00002380| 73 74 6f 72 79 2d 73 65 | 78 70 2d 66 6c 61 67 20 |story-se|xp-flag |
|00002390| 6d 69 6e 69 62 75 66 66 | 65 72 2d 68 69 73 74 6f |minibuff|er-histo|
|000023a0| 72 79 2d 70 6f 73 69 74 | 69 6f 6e 20 65 6c 74 20 |ry-posit|ion elt |
|000023b0| 72 65 61 64 2d 66 72 6f | 6d 2d 6d 69 6e 69 62 75 |read-fro|m-minibu|
|000023c0| 66 66 65 72 20 22 52 65 | 64 6f 3a 20 22 20 70 72 |ffer "Re|do: " pr|
|000023d0| 69 6e 31 2d 74 6f 2d 73 | 74 72 69 6e 67 20 72 65 |in1-to-s|tring re|
|000023e0| 61 64 2d 65 78 70 72 65 | 73 73 69 6f 6e 2d 6d 61 |ad-expre|ssion-ma|
|000023f0| 70 20 65 76 61 6c 20 64 | 69 6e 67 5d 20 38 20 22 |p eval d|ing] 8 "|
|00002400| 5c 0a 45 64 69 74 20 61 | 6e 64 20 72 65 2d 65 76 |\.Edit a|nd re-ev|
|00002410| 61 6c 75 61 74 65 20 6c | 61 73 74 20 63 6f 6d 70 |aluate l|ast comp|
|00002420| 6c 65 78 20 63 6f 6d 6d | 61 6e 64 2c 20 6f 72 20 |lex comm|and, or |
|00002430| 41 52 47 74 68 20 66 72 | 6f 6d 20 6c 61 73 74 2e |ARGth fr|om last.|
|00002440| 0a 41 20 63 6f 6d 70 6c | 65 78 20 63 6f 6d 6d 61 |.A compl|ex comma|
|00002450| 6e 64 20 69 73 20 6f 6e | 65 20 77 68 69 63 68 20 |nd is on|e which |
|00002460| 75 73 65 64 20 74 68 65 | 20 6d 69 6e 69 62 75 66 |used the| minibuf|
|00002470| 66 65 72 2e 0a 54 68 65 | 20 63 6f 6d 6d 61 6e 64 |fer..The| command|
|00002480| 20 69 73 20 70 6c 61 63 | 65 64 20 69 6e 20 74 68 | is plac|ed in th|
|00002490| 65 20 6d 69 6e 69 62 75 | 66 66 65 72 20 61 73 20 |e minibu|ffer as |
|000024a0| 61 20 4c 69 73 70 20 66 | 6f 72 6d 20 66 6f 72 20 |a Lisp f|orm for |
|000024b0| 65 64 69 74 69 6e 67 2e | 0a 54 68 65 20 72 65 73 |editing.|.The res|
|000024c0| 75 6c 74 20 69 73 20 65 | 78 65 63 75 74 65 64 2c |ult is e|xecuted,|
|000024d0| 20 72 65 70 65 61 74 69 | 6e 67 20 74 68 65 20 63 | repeati|ng the c|
|000024e0| 6f 6d 6d 61 6e 64 20 61 | 73 20 63 68 61 6e 67 65 |ommand a|s change|
|000024f0| 64 2e 0a 49 66 20 74 68 | 65 20 63 6f 6d 6d 61 6e |d..If th|e comman|
|00002500| 64 20 68 61 73 20 62 65 | 65 6e 20 63 68 61 6e 67 |d has be|en chang|
|00002510| 65 64 20 6f 72 20 69 73 | 20 6e 6f 74 20 74 68 65 |ed or is| not the|
|00002520| 20 6d 6f 73 74 20 72 65 | 63 65 6e 74 20 70 72 65 | most re|cent pre|
|00002530| 76 69 6f 75 73 20 63 6f | 6d 6d 61 6e 64 0a 69 74 |vious co|mmand.it|
|00002540| 20 69 73 20 61 64 64 65 | 64 20 74 6f 20 74 68 65 | is adde|d to the|
|00002550| 20 66 72 6f 6e 74 20 6f | 66 20 74 68 65 20 63 6f | front o|f the co|
|00002560| 6d 6d 61 6e 64 20 68 69 | 73 74 6f 72 79 2e 0a 59 |mmand hi|story..Y|
|00002570| 6f 75 20 63 61 6e 20 75 | 73 65 20 74 68 65 20 6d |ou can u|se the m|
|00002580| 69 6e 69 62 75 66 66 65 | 72 20 68 69 73 74 6f 72 |inibuffe|r histor|
|00002590| 79 20 63 6f 6d 6d 61 6e | 64 73 20 5c 5c 3c 6d 69 |y comman|ds \\<mi|
|000025a0| 6e 69 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 2d 6d |nibuffer|-local-m|
|000025b0| 61 70 3e 5c 5c 5b 6e 65 | 78 74 2d 68 69 73 74 6f |ap>\\[ne|xt-histo|
|000025c0| 72 79 2d 65 6c 65 6d 65 | 6e 74 5d 20 61 6e 64 20 |ry-eleme|nt] and |
|000025d0| 5c 5c 5b 70 72 65 76 69 | 6f 75 73 2d 68 69 73 74 |\\[previ|ous-hist|
|000025e0| 6f 72 79 2d 65 6c 65 6d | 65 6e 74 5d 0a 74 6f 20 |ory-elem|ent].to |
|000025f0| 67 65 74 20 64 69 66 66 | 65 72 65 6e 74 20 63 6f |get diff|erent co|
|00002600| 6d 6d 61 6e 64 73 20 74 | 6f 20 65 64 69 74 20 61 |mmands t|o edit a|
|00002610| 6e 64 20 72 65 73 75 62 | 6d 69 74 2e 22 20 22 70 |nd resub|mit." "p|
|00002620| 22 5d 29 0a 28 64 65 66 | 76 61 72 20 6d 69 6e 69 |"]).(def|var mini|
|00002630| 62 75 66 66 65 72 2d 68 | 69 73 74 6f 72 79 20 6e |buffer-h|istory n|
|00002640| 69 6c 20 22 5c 0a 44 65 | 66 61 75 6c 74 20 6d 69 |il "\.De|fault mi|
|00002650| 6e 69 62 75 66 66 65 72 | 20 68 69 73 74 6f 72 79 |nibuffer| history|
|00002660| 20 6c 69 73 74 2e 0a 54 | 68 69 73 20 69 73 20 75 | list..T|his is u|
|00002670| 73 65 64 20 66 6f 72 20 | 61 6c 6c 20 6d 69 6e 69 |sed for |all mini|
|00002680| 62 75 66 66 65 72 20 69 | 6e 70 75 74 0a 65 78 63 |buffer i|nput.exc|
|00002690| 65 70 74 20 77 68 65 6e | 20 61 6e 20 61 6c 74 65 |ept when| an alte|
|000026a0| 72 6e 61 74 65 20 68 69 | 73 74 6f 72 79 20 6c 69 |rnate hi|story li|
|000026b0| 73 74 20 69 73 20 73 70 | 65 63 69 66 69 65 64 2e |st is sp|ecified.|
|000026c0| 22 29 0a 28 64 65 66 76 | 61 72 20 6d 69 6e 69 62 |").(defv|ar minib|
|000026d0| 75 66 66 65 72 2d 68 69 | 73 74 6f 72 79 2d 73 65 |uffer-hi|story-se|
|000026e0| 78 70 2d 66 6c 61 67 20 | 6e 69 6c 20 22 5c 0a 4e |xp-flag |nil "\.N|
|000026f0| 6f 6e 2d 6e 69 6c 20 77 | 68 65 6e 20 64 6f 69 6e |on-nil w|hen doin|
|00002700| 67 20 68 69 73 74 6f 72 | 79 20 6f 70 65 72 61 74 |g histor|y operat|
|00002710| 69 6f 6e 73 20 6f 6e 20 | 60 63 6f 6d 6d 61 6e 64 |ions on |`command|
|00002720| 2d 68 69 73 74 6f 72 79 | 27 2e 0a 4d 6f 72 65 20 |-history|'..More |
|00002730| 67 65 6e 65 72 61 6c 6c | 79 2c 20 69 6e 64 69 63 |generall|y, indic|
|00002740| 61 74 65 73 20 74 68 61 | 74 20 74 68 65 20 68 69 |ates tha|t the hi|
|00002750| 73 74 6f 72 79 20 6c 69 | 73 74 20 62 65 69 6e 67 |story li|st being|
|00002760| 20 61 63 74 65 64 20 6f | 6e 0a 63 6f 6e 74 61 69 | acted o|n.contai|
|00002770| 6e 73 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 72 |ns expre|ssions r|
|00002780| 61 74 68 65 72 20 74 68 | 61 6e 20 73 74 72 69 6e |ather th|an strin|
|00002790| 67 73 2e 22 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |gs.").(b|yte-code|
|000027a0| 20 22 c0 11 c2 13 c4 c5 | 21 84 5c 66 00 c2 15 c6 | "......|!.\f....|
|000027b0| c7 c8 5c 22 87 22 20 5b | 6d 69 6e 69 62 75 66 66 |..\"." [|minibuff|
|000027c0| 65 72 2d 68 69 73 74 6f | 72 79 20 6d 69 6e 69 62 |er-histo|ry minib|
|000027d0| 75 66 66 65 72 2d 68 69 | 73 74 6f 72 79 2d 76 61 |uffer-hi|story-va|
|000027e0| 72 69 61 62 6c 65 20 6e | 69 6c 20 6d 69 6e 69 62 |riable n|il minib|
|000027f0| 75 66 66 65 72 2d 68 69 | 73 74 6f 72 79 2d 70 6f |uffer-hi|story-po|
|00002800| 73 69 74 69 6f 6e 20 62 | 6f 75 6e 64 70 20 6d 69 |sition b|oundp mi|
|00002810| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00002820| 2d 73 65 61 72 63 68 2d | 68 69 73 74 6f 72 79 20 |-search-|history |
|00002830| 6d 61 70 63 61 72 20 23 | 5b 28 6b 65 79 2d 61 6e |mapcar #|[(key-an|
|00002840| 64 2d 63 6f 6d 6d 61 6e | 64 29 20 22 c0 c1 c2 5c |d-comman|d) "...\|
|00002850| 22 87 22 20 5b 6d 61 70 | 63 61 72 20 23 5b 28 6b |"." [map|car #[(k|
|00002860| 65 79 6d 61 70 2d 61 6e | 64 2d 63 6f 6d 70 6c 65 |eymap-an|d-comple|
|00002870| 74 69 6f 6e 70 29 20 22 | c0 09 40 4a 5c 6e 40 5c |tionp) "|..@J\n@\|
|00002880| 6e 41 89 1b 3a 83 13 00 | 0b 40 82 14 00 0b 29 23 |nA..:...|.@....)#|
|00002890| 87 22 20 5b 64 65 66 69 | 6e 65 2d 6b 65 79 20 6b |." [defi|ne-key k|
|000028a0| 65 79 6d 61 70 2d 61 6e | 64 2d 63 6f 6d 70 6c 65 |eymap-an|d-comple|
|000028b0| 74 69 6f 6e 70 20 6b 65 | 79 2d 61 6e 64 2d 63 6f |tionp ke|y-and-co|
|000028c0| 6d 6d 61 6e 64 20 63 6f | 6d 6d 61 6e 64 5d 20 35 |mmand co|mmand] 5|
|000028d0| 5d 20 28 28 6d 69 6e 69 | 62 75 66 66 65 72 2d 6c |] ((mini|buffer-l|
|000028e0| 6f 63 61 6c 2d 6d 61 70 | 29 20 28 6d 69 6e 69 62 |ocal-map|) (minib|
|000028f0| 75 66 66 65 72 2d 6c 6f | 63 61 6c 2d 6e 73 2d 6d |uffer-lo|cal-ns-m|
|00002900| 61 70 29 20 28 6d 69 6e | 69 62 75 66 66 65 72 2d |ap) (min|ibuffer-|
|00002910| 6c 6f 63 61 6c 2d 63 6f | 6d 70 6c 65 74 69 6f 6e |local-co|mpletion|
|00002920| 2d 6d 61 70 20 2e 20 74 | 29 20 28 6d 69 6e 69 62 |-map . t|) (minib|
|00002930| 75 66 66 65 72 2d 6c 6f | 63 61 6c 2d 6d 75 73 74 |uffer-lo|cal-must|
|00002940| 2d 6d 61 74 63 68 2d 6d | 61 70 20 2e 20 74 29 20 |-match-m|ap . t) |
|00002950| 28 72 65 61 64 2d 65 78 | 70 72 65 73 73 69 6f 6e |(read-ex|pression|
|00002960| 2d 6d 61 70 29 29 5d 20 | 33 5d 20 28 28 22 1b 6e |-map))] |3] ((".n|
|00002970| 22 20 6e 65 78 74 2d 68 | 69 73 74 6f 72 79 2d 65 |" next-h|istory-e|
|00002980| 6c 65 6d 65 6e 74 20 2e | 20 6e 65 78 74 2d 63 6f |lement .| next-co|
|00002990| 6d 70 6c 65 74 65 2d 68 | 69 73 74 6f 72 79 2d 65 |mplete-h|istory-e|
|000029a0| 6c 65 6d 65 6e 74 29 20 | 28 5b 6e 65 78 74 5d 20 |lement) |([next] |
|000029b0| 6e 65 78 74 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |next-his|tory-ele|
|000029c0| 6d 65 6e 74 20 2e 20 6e | 65 78 74 2d 63 6f 6d 70 |ment . n|ext-comp|
|000029d0| 6c 65 74 65 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |lete-his|tory-ele|
|000029e0| 6d 65 6e 74 29 20 28 22 | 1b 70 22 20 70 72 65 76 |ment) ("|.p" prev|
|000029f0| 69 6f 75 73 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |ious-his|tory-ele|
|00002a00| 6d 65 6e 74 20 2e 20 70 | 72 65 76 69 6f 75 73 2d |ment . p|revious-|
|00002a10| 63 6f 6d 70 6c 65 74 65 | 2d 68 69 73 74 6f 72 79 |complete|-history|
|00002a20| 2d 65 6c 65 6d 65 6e 74 | 29 20 28 5b 70 72 69 6f |-element|) ([prio|
|00002a30| 72 5d 20 70 72 65 76 69 | 6f 75 73 2d 68 69 73 74 |r] previ|ous-hist|
|00002a40| 6f 72 79 2d 65 6c 65 6d | 65 6e 74 20 2e 20 70 72 |ory-elem|ent . pr|
|00002a50| 65 76 69 6f 75 73 2d 63 | 6f 6d 70 6c 65 74 65 2d |evious-c|omplete-|
|00002a60| 68 69 73 74 6f 72 79 2d | 65 6c 65 6d 65 6e 74 29 |history-|element)|
|00002a70| 20 28 22 1b 72 22 20 2e | 20 70 72 65 76 69 6f 75 | (".r" .| previou|
|00002a80| 73 2d 6d 61 74 63 68 69 | 6e 67 2d 68 69 73 74 6f |s-matchi|ng-histo|
|00002a90| 72 79 2d 65 6c 65 6d 65 | 6e 74 29 20 28 22 1b 73 |ry-eleme|nt) (".s|
|00002aa0| 22 20 2e 20 6e 65 78 74 | 2d 6d 61 74 63 68 69 6e |" . next|-matchin|
|00002ab0| 67 2d 68 69 73 74 6f 72 | 79 2d 65 6c 65 6d 65 6e |g-histor|y-elemen|
|00002ac0| 74 29 29 5d 20 33 29 0a | 28 64 65 66 61 6c 69 61 |t))] 3).|(defalia|
|00002ad0| 73 20 27 70 72 65 76 69 | 6f 75 73 2d 6d 61 74 63 |s 'previ|ous-matc|
|00002ae0| 68 69 6e 67 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |hing-his|tory-ele|
|00002af0| 6d 65 6e 74 20 23 5b 28 | 72 65 67 65 78 70 20 6e |ment #[(|regexp n|
|00002b00| 29 20 22 08 4a c1 5c 6e | 1b 1c 1d 0e 06 c7 55 84 |) ".J.\n|......U.|
|00002b10| 65 00 0b 14 c8 0b 0e 06 | c7 57 83 1d 00 c9 82 1e |e.......|.W......|
|00002b20| 00 c8 5c 5c 5d 0d 47 5e | 89 13 5c 66 55 83 38 00 |..\\].G^|..\fU.8.|
|00002b30| ca 0b c8 55 83 35 00 cb | 82 36 00 cc 21 88 cd 0e |...U.5..|.6..!...|
|00002b40| 0e 0e 0f 83 49 00 d0 0b | 53 0d 38 21 82 4d 00 0b |....I...|S.8!.M..|
|00002b50| 53 0d 38 5c 22 83 07 00 | 0e 06 89 c7 57 83 5d 00 |S.8\"...|....W.].|
|00002b60| c8 82 5e 00 c9 5c 5c 89 | 16 06 82 09 00 0b 12 d1 |..^..\\.|........|
|00002b70| 20 88 0b 53 0d 38 1e 12 | 0e 0f 83 7c 00 d0 0e 12 | ..S.8..|...|....|
|00002b80| 21 82 7e 00 0e 12 63 88 | 29 65 62 88 2b 0e 13 40 |!.~...c.|)eb.+..@|
|00002b90| 40 d4 3d 84 97 00 0e 13 | 40 40 d5 3d 85 9d 00 0e |@.=.....|@@.=....|
|00002ba0| 13 41 89 16 13 87 22 20 | 5b 6d 69 6e 69 62 75 66 |.A...." |[minibuf|
|00002bb0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 76 61 72 69 |fer-hist|ory-vari|
|00002bc0| 61 62 6c 65 20 6e 69 6c | 20 6d 69 6e 69 62 75 66 |able nil| minibuf|
|00002bd0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 70 6f 73 69 |fer-hist|ory-posi|
|00002be0| 74 69 6f 6e 20 70 6f 73 | 20 70 72 65 76 70 6f 73 |tion pos| prevpos|
|00002bf0| 20 68 69 73 74 6f 72 79 | 20 6e 20 30 20 31 20 2d | history| n 0 1 -|
|00002c00| 31 20 65 72 72 6f 72 20 | 22 4e 6f 20 6c 61 74 65 |1 error |"No late|
|00002c10| 72 20 6d 61 74 63 68 69 | 6e 67 20 68 69 73 74 6f |r matchi|ng histo|
|00002c20| 72 79 20 69 74 65 6d 22 | 20 22 4e 6f 20 65 61 72 |ry item"| "No ear|
|00002c30| 6c 69 65 72 20 6d 61 74 | 63 68 69 6e 67 20 68 69 |lier mat|ching hi|
|00002c40| 73 74 6f 72 79 20 69 74 | 65 6d 22 20 73 74 72 69 |story it|em" stri|
|00002c50| 6e 67 2d 6d 61 74 63 68 | 20 72 65 67 65 78 70 20 |ng-match| regexp |
|00002c60| 6d 69 6e 69 62 75 66 66 | 65 72 2d 68 69 73 74 6f |minibuff|er-histo|
|00002c70| 72 79 2d 73 65 78 70 2d | 66 6c 61 67 20 70 72 69 |ry-sexp-|flag pri|
|00002c80| 6e 31 2d 74 6f 2d 73 74 | 72 69 6e 67 20 65 72 61 |n1-to-st|ring era|
|00002c90| 73 65 2d 62 75 66 66 65 | 72 20 65 6c 74 20 63 6f |se-buffe|r elt co|
|00002ca0| 6d 6d 61 6e 64 2d 68 69 | 73 74 6f 72 79 20 70 72 |mmand-hi|story pr|
|00002cb0| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00002cc0| 68 69 73 74 6f 72 79 2d | 65 6c 65 6d 65 6e 74 20 |history-|element |
|00002cd0| 6e 65 78 74 2d 6d 61 74 | 63 68 69 6e 67 2d 68 69 |next-mat|ching-hi|
|00002ce0| 73 74 6f 72 79 2d 65 6c | 65 6d 65 6e 74 5d 20 36 |story-el|ement] 6|
|00002cf0| 20 22 5c 0a 46 69 6e 64 | 20 74 68 65 20 70 72 65 | "\.Find| the pre|
|00002d00| 76 69 6f 75 73 20 68 69 | 73 74 6f 72 79 20 65 6c |vious hi|story el|
|00002d10| 65 6d 65 6e 74 20 74 68 | 61 74 20 6d 61 74 63 68 |ement th|at match|
|00002d20| 65 73 20 52 45 47 45 58 | 50 2e 0a 28 50 72 65 76 |es REGEX|P..(Prev|
|00002d30| 69 6f 75 73 20 68 69 73 | 74 6f 72 79 20 65 6c 65 |ious his|tory ele|
|00002d40| 6d 65 6e 74 73 20 72 65 | 66 65 72 20 74 6f 20 65 |ments re|fer to e|
|00002d50| 61 72 6c 69 65 72 20 61 | 63 74 69 6f 6e 73 2e 29 |arlier a|ctions.)|
|00002d60| 0a 57 69 74 68 20 70 72 | 65 66 69 78 20 61 72 67 |.With pr|efix arg|
|00002d70| 75 6d 65 6e 74 20 4e 2c | 20 73 65 61 72 63 68 20 |ument N,| search |
|00002d80| 66 6f 72 20 4e 74 68 20 | 70 72 65 76 69 6f 75 73 |for Nth |previous|
|00002d90| 20 6d 61 74 63 68 2e 0a | 49 66 20 4e 20 69 73 20 | match..|If N is |
|00002da0| 6e 65 67 61 74 69 76 65 | 2c 20 66 69 6e 64 20 74 |negative|, find t|
|00002db0| 68 65 20 6e 65 78 74 20 | 6f 72 20 4e 74 68 20 6e |he next |or Nth n|
|00002dc0| 65 78 74 20 6d 61 74 63 | 68 2e 22 20 28 62 79 74 |ext matc|h." (byt|
|00002dd0| 65 2d 63 6f 64 65 20 22 | c0 19 c2 1b c4 c5 c2 0e |e-code "|........|
|00002de0| 06 c2 c7 25 89 1e 08 c9 | 98 83 1d 00 0e 07 89 41 |...%....|.......A|
|00002df0| 40 a0 82 1f 00 0e 08 ca | 0e 0b 21 2b 44 87 22 20 |@.......|..!+D." |
|00002e00| 5b 74 20 65 6e 61 62 6c | 65 2d 72 65 63 75 72 73 |[t enabl|e-recurs|
|00002e10| 69 76 65 2d 6d 69 6e 69 | 62 75 66 66 65 72 73 20 |ive-mini|buffers |
|00002e20| 6e 69 6c 20 6d 69 6e 69 | 62 75 66 66 65 72 2d 68 |nil mini|buffer-h|
|00002e30| 69 73 74 6f 72 79 2d 73 | 65 78 70 2d 66 6c 61 67 |istory-s|exp-flag|
|00002e40| 20 72 65 61 64 2d 66 72 | 6f 6d 2d 6d 69 6e 69 62 | read-fr|om-minib|
|00002e50| 75 66 66 65 72 20 22 50 | 72 65 76 69 6f 75 73 20 |uffer "P|revious |
|00002e60| 65 6c 65 6d 65 6e 74 20 | 6d 61 74 63 68 69 6e 67 |element |matching|
|00002e70| 20 28 72 65 67 65 78 70 | 29 3a 20 22 20 6d 69 6e | (regexp|): " min|
|00002e80| 69 62 75 66 66 65 72 2d | 6c 6f 63 61 6c 2d 6d 61 |ibuffer-|local-ma|
|00002e90| 70 20 6d 69 6e 69 62 75 | 66 66 65 72 2d 68 69 73 |p minibu|ffer-his|
|00002ea0| 74 6f 72 79 2d 73 65 61 | 72 63 68 2d 68 69 73 74 |tory-sea|rch-hist|
|00002eb0| 6f 72 79 20 72 65 67 65 | 78 70 20 22 22 20 70 72 |ory rege|xp "" pr|
|00002ec0| 65 66 69 78 2d 6e 75 6d | 65 72 69 63 2d 76 61 6c |efix-num|eric-val|
|00002ed0| 75 65 20 63 75 72 72 65 | 6e 74 2d 70 72 65 66 69 |ue curre|nt-prefi|
|00002ee0| 78 2d 61 72 67 5d 20 37 | 29 5d 29 0a 28 64 65 66 |x-arg] 7|)]).(def|
|00002ef0| 61 6c 69 61 73 20 27 6e | 65 78 74 2d 6d 61 74 63 |alias 'n|ext-matc|
|00002f00| 68 69 6e 67 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |hing-his|tory-ele|
|00002f10| 6d 65 6e 74 20 23 5b 28 | 72 65 67 65 78 70 20 6e |ment #[(|regexp n|
|00002f20| 29 20 22 c0 09 5c 6e 5b | 5c 22 87 22 20 5b 70 72 |) "..\n[|\"." [pr|
|00002f30| 65 76 69 6f 75 73 2d 6d | 61 74 63 68 69 6e 67 2d |evious-m|atching-|
|00002f40| 68 69 73 74 6f 72 79 2d | 65 6c 65 6d 65 6e 74 20 |history-|element |
|00002f50| 72 65 67 65 78 70 20 6e | 5d 20 33 20 22 5c 0a 46 |regexp n|] 3 "\.F|
|00002f60| 69 6e 64 20 74 68 65 20 | 6e 65 78 74 20 68 69 73 |ind the |next his|
|00002f70| 74 6f 72 79 20 65 6c 65 | 6d 65 6e 74 20 74 68 61 |tory ele|ment tha|
|00002f80| 74 20 6d 61 74 63 68 65 | 73 20 52 45 47 45 58 50 |t matche|s REGEXP|
|00002f90| 2e 0a 28 54 68 65 20 6e | 65 78 74 20 68 69 73 74 |..(The n|ext hist|
|00002fa0| 6f 72 79 20 65 6c 65 6d | 65 6e 74 20 72 65 66 65 |ory elem|ent refe|
|00002fb0| 72 73 20 74 6f 20 61 20 | 6d 6f 72 65 20 72 65 63 |rs to a |more rec|
|00002fc0| 65 6e 74 20 61 63 74 69 | 6f 6e 2e 29 0a 57 69 74 |ent acti|on.).Wit|
|00002fd0| 68 20 70 72 65 66 69 78 | 20 61 72 67 75 6d 65 6e |h prefix| argumen|
|00002fe0| 74 20 4e 2c 20 73 65 61 | 72 63 68 20 66 6f 72 20 |t N, sea|rch for |
|00002ff0| 4e 74 68 20 6e 65 78 74 | 20 6d 61 74 63 68 2e 0a |Nth next| match..|
|00003000| 49 66 20 4e 20 69 73 20 | 6e 65 67 61 74 69 76 65 |If N is |negative|
|00003010| 2c 20 66 69 6e 64 20 74 | 68 65 20 70 72 65 76 69 |, find t|he previ|
|00003020| 6f 75 73 20 6f 72 20 4e | 74 68 20 70 72 65 76 69 |ous or N|th previ|
|00003030| 6f 75 73 20 6d 61 74 63 | 68 2e 22 20 28 62 79 74 |ous matc|h." (byt|
|00003040| 65 2d 63 6f 64 65 20 22 | c0 19 c2 1b c4 c5 c2 0e |e-code "|........|
|00003050| 06 c2 c7 25 89 1e 08 c9 | 98 83 1d 00 0e 07 89 41 |...%....|.......A|
|00003060| 40 a0 82 1f 00 0e 08 ca | 0e 0b 21 2b 44 87 22 20 |@.......|..!+D." |
|00003070| 5b 74 20 65 6e 61 62 6c | 65 2d 72 65 63 75 72 73 |[t enabl|e-recurs|
|00003080| 69 76 65 2d 6d 69 6e 69 | 62 75 66 66 65 72 73 20 |ive-mini|buffers |
|00003090| 6e 69 6c 20 6d 69 6e 69 | 62 75 66 66 65 72 2d 68 |nil mini|buffer-h|
|000030a0| 69 73 74 6f 72 79 2d 73 | 65 78 70 2d 66 6c 61 67 |istory-s|exp-flag|
|000030b0| 20 72 65 61 64 2d 66 72 | 6f 6d 2d 6d 69 6e 69 62 | read-fr|om-minib|
|000030c0| 75 66 66 65 72 20 22 4e | 65 78 74 20 65 6c 65 6d |uffer "N|ext elem|
|000030d0| 65 6e 74 20 6d 61 74 63 | 68 69 6e 67 20 28 72 65 |ent matc|hing (re|
|000030e0| 67 65 78 70 29 3a 20 22 | 20 6d 69 6e 69 62 75 66 |gexp): "| minibuf|
|000030f0| 66 65 72 2d 6c 6f 63 61 | 6c 2d 6d 61 70 20 6d 69 |fer-loca|l-map mi|
|00003100| 6e 69 62 75 66 66 65 72 | 2d 68 69 73 74 6f 72 79 |nibuffer|-history|
|00003110| 2d 73 65 61 72 63 68 2d | 68 69 73 74 6f 72 79 20 |-search-|history |
|00003120| 72 65 67 65 78 70 20 22 | 22 20 70 72 65 66 69 78 |regexp "|" prefix|
|00003130| 2d 6e 75 6d 65 72 69 63 | 2d 76 61 6c 75 65 20 63 |-numeric|-value c|
|00003140| 75 72 72 65 6e 74 2d 70 | 72 65 66 69 78 2d 61 72 |urrent-p|refix-ar|
|00003150| 67 5d 20 37 29 5d 29 0a | 28 64 65 66 61 6c 69 61 |g] 7)]).|(defalia|
|00003160| 73 20 27 6e 65 78 74 2d | 68 69 73 74 6f 72 79 2d |s 'next-|history-|
|00003170| 65 6c 65 6d 65 6e 74 20 | 23 5b 28 6e 29 20 22 c0 |element |#[(n) ".|
|00003180| 09 5c 6e 5a 5d 0b 4a 47 | 5e 1c 09 5c 66 55 83 20 |.\nZ].JG|^..\fU. |
|00003190| 00 c5 09 c0 55 83 1b 00 | c6 82 1c 00 c7 21 82 3f |....U...|.....!.?|
|000031a0| 00 c8 20 88 5c 66 89 11 | 53 0b 4a 38 1e 09 0e 5c |.. .\f..|S.J8...\|
|000031b0| 6e 83 38 00 cb 0e 09 21 | 82 3a 00 0e 09 63 88 29 |n.8....!|.:...c.)|
|000031c0| 65 62 29 87 22 20 5b 31 | 20 6d 69 6e 69 62 75 66 |eb)." [1| minibuf|
|000031d0| 66 65 72 2d 68 69 73 74 | 6f 72 79 2d 70 6f 73 69 |fer-hist|ory-posi|
|000031e0| 74 69 6f 6e 20 6e 20 6d | 69 6e 69 62 75 66 66 65 |tion n m|inibuffe|
|000031f0| 72 2d 68 69 73 74 6f 72 | 79 2d 76 61 72 69 61 62 |r-histor|y-variab|
|00003200| 6c 65 20 6e 61 72 67 20 | 65 72 72 6f 72 20 22 45 |le narg |error "E|
|00003210| 6e 64 20 6f 66 20 68 69 | 73 74 6f 72 79 3b 20 6e |nd of hi|story; n|
|00003220| 6f 20 6e 65 78 74 20 69 | 74 65 6d 22 20 22 42 65 |o next i|tem" "Be|
|00003230| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 68 69 73 74 6f |ginning |of histo|
|00003240| 72 79 3b 20 6e 6f 20 70 | 72 65 63 65 64 69 6e 67 |ry; no p|receding|
|00003250| 20 69 74 65 6d 22 20 65 | 72 61 73 65 2d 62 75 66 | item" e|rase-buf|
|00003260| 66 65 72 20 65 6c 74 20 | 6d 69 6e 69 62 75 66 66 |fer elt |minibuff|
|00003270| 65 72 2d 68 69 73 74 6f | 72 79 2d 73 65 78 70 2d |er-histo|ry-sexp-|
|00003280| 66 6c 61 67 20 70 72 69 | 6e 31 2d 74 6f 2d 73 74 |flag pri|n1-to-st|
|00003290| 72 69 6e 67 5d 20 34 20 | 22 5c 0a 49 6e 73 65 72 |ring] 4 |"\.Inser|
|000032a0| 74 20 74 68 65 20 6e 65 | 78 74 20 65 6c 65 6d 65 |t the ne|xt eleme|
|000032b0| 6e 74 20 6f 66 20 74 68 | 65 20 6d 69 6e 69 62 75 |nt of th|e minibu|
|000032c0| 66 66 65 72 20 68 69 73 | 74 6f 72 79 20 69 6e 74 |ffer his|tory int|
|000032d0| 6f 20 74 68 65 20 6d 69 | 6e 69 62 75 66 66 65 72 |o the mi|nibuffer|
|000032e0| 2e 22 20 22 70 22 5d 29 | 0a 28 64 65 66 61 6c 69 |." "p"])|.(defali|
|000032f0| 61 73 20 27 70 72 65 76 | 69 6f 75 73 2d 68 69 73 |as 'prev|ious-his|
|00003300| 74 6f 72 79 2d 65 6c 65 | 6d 65 6e 74 20 23 5b 28 |tory-ele|ment #[(|
|00003310| 6e 29 20 22 c0 09 5b 21 | 87 22 20 5b 6e 65 78 74 |n) "..[!|." [next|
|00003320| 2d 68 69 73 74 6f 72 79 | 2d 65 6c 65 6d 65 6e 74 |-history|-element|
|00003330| 20 6e 5d 20 32 20 22 5c | 0a 49 6e 73 65 72 74 73 | n] 2 "\|.Inserts|
|00003340| 20 74 68 65 20 70 72 65 | 76 69 6f 75 73 20 65 6c | the pre|vious el|
|00003350| 65 6d 65 6e 74 20 6f 66 | 20 74 68 65 20 6d 69 6e |ement of| the min|
|00003360| 69 62 75 66 66 65 72 20 | 68 69 73 74 6f 72 79 20 |ibuffer |history |
|00003370| 69 6e 74 6f 20 74 68 65 | 20 6d 69 6e 69 62 75 66 |into the| minibuf|
|00003380| 66 65 72 2e 22 20 22 70 | 22 5d 29 0a 28 64 65 66 |fer." "p|"]).(def|
|00003390| 61 6c 69 61 73 20 27 6e | 65 78 74 2d 63 6f 6d 70 |alias 'n|ext-comp|
|000033a0| 6c 65 74 65 2d 68 69 73 | 74 6f 72 79 2d 65 6c 65 |lete-his|tory-ele|
|000033b0| 6d 65 6e 74 20 23 5b 28 | 6e 29 20 22 60 18 c1 c2 |ment #[(|n) "`...|
|000033c0| c3 65 60 7b 21 50 5c 66 | 5c 22 88 08 62 29 87 22 |.e`{!P\f|\"..b)."|
|000033d0| 20 5b 70 6f 69 6e 74 2d | 61 74 2d 73 74 61 72 74 | [point-|at-start|
|000033e0| 20 6e 65 78 74 2d 6d 61 | 74 63 68 69 6e 67 2d 68 | next-ma|tching-h|
|000033f0| 69 73 74 6f 72 79 2d 65 | 6c 65 6d 65 6e 74 20 22 |istory-e|lement "|
|00003400| 5e 22 20 72 65 67 65 78 | 70 2d 71 75 6f 74 65 20 |^" regex|p-quote |
|00003410| 6e 5d 20 35 20 22 5c 0a | 47 65 74 20 6e 65 78 74 |n] 5 "\.|Get next|
|00003420| 20 65 6c 65 6d 65 6e 74 | 20 6f 66 20 68 69 73 74 | element| of hist|
|00003430| 6f 72 79 20 77 68 69 63 | 68 20 69 73 20 61 20 63 |ory whic|h is a c|
|00003440| 6f 6d 70 6c 65 74 69 6f | 6e 20 6f 66 20 6d 69 6e |ompletio|n of min|
|00003450| 69 62 75 66 66 65 72 20 | 63 6f 6e 74 65 6e 74 73 |ibuffer |contents|
|00003460| 2e 22 20 22 70 22 5d 29 | 0a 28 64 65 66 61 6c 69 |." "p"])|.(defali|
|00003470| 61 73 20 27 70 72 65 76 | 69 6f 75 73 2d 63 6f 6d |as 'prev|ious-com|
|00003480| 70 6c 65 74 65 2d 68 69 | 73 74 6f 72 79 2d 65 6c |plete-hi|story-el|
|00003490| 65 6d 65 6e 74 20 23 5b | 28 6e 29 20 22 c0 09 5b |ement #[|(n) "..[|
|000034a0| 21 87 22 20 5b 6e 65 78 | 74 2d 63 6f 6d 70 6c 65 |!." [nex|t-comple|
|000034b0| 74 65 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |te-histo|ry-eleme|
|000034c0| 6e 74 20 6e 5d 20 32 20 | 22 5c 0a 47 65 74 20 70 |nt n] 2 |"\.Get p|
|000034d0| 72 65 76 69 6f 75 73 20 | 65 6c 65 6d 65 6e 74 20 |revious |element |
|000034e0| 6f 66 20 68 69 73 74 6f | 72 79 20 77 68 69 63 68 |of histo|ry which|
|000034f0| 20 69 73 20 61 20 63 6f | 6d 70 6c 65 74 69 6f 6e | is a co|mpletion|
|00003500| 20 6f 66 20 6d 69 6e 69 | 62 75 66 66 65 72 20 63 | of mini|buffer c|
|00003510| 6f 6e 74 65 6e 74 73 2e | 22 20 22 70 22 5d 29 0a |ontents.|" "p"]).|
|00003520| 28 64 65 66 61 6c 69 61 | 73 20 27 67 6f 74 6f 2d |(defalia|s 'goto-|
|00003530| 6c 69 6e 65 20 23 5b 28 | 61 72 67 29 20 22 8c 7e |line #[(|arg) ".~|
|00003540| 88 c0 62 88 09 c2 3d 83 | 17 00 c3 c4 c5 c6 0e 07 |..b...=.|........|
|00003550| 53 24 82 1b 00 0e 07 53 | 79 29 87 22 20 5b 31 20 |S$.....S|y)." [1 |
|00003560| 73 65 6c 65 63 74 69 76 | 65 2d 64 69 73 70 6c 61 |selectiv|e-displa|
|00003570| 79 20 74 20 72 65 2d 73 | 65 61 72 63 68 2d 66 6f |y t re-s|earch-fo|
|00003580| 72 77 61 72 64 20 22 5b | 5c 6e 0d 5d 22 20 6e 69 |rward "[|\n.]" ni|
|00003590| 6c 20 65 6e 64 20 61 72 | 67 5d 20 35 20 22 5c 0a |l end ar|g] 5 "\.|
|000035a0| 47 6f 74 6f 20 6c 69 6e | 65 20 41 52 47 2c 20 63 |Goto lin|e ARG, c|
|000035b0| 6f 75 6e 74 69 6e 67 20 | 66 72 6f 6d 20 6c 69 6e |ounting |from lin|
|000035c0| 65 20 31 20 61 74 20 62 | 65 67 69 6e 6e 69 6e 67 |e 1 at b|eginning|
|000035d0| 20 6f 66 20 62 75 66 66 | 65 72 2e 22 20 22 4e 47 | of buff|er." "NG|
|000035e0| 6f 74 6f 20 6c 69 6e 65 | 3a 20 22 5d 29 0a 28 64 |oto line|: "]).(d|
|000035f0| 65 66 69 6e 65 2d 66 75 | 6e 63 74 69 6f 6e 20 28 |efine-fu|nction (|
|00003600| 71 75 6f 74 65 20 61 64 | 76 65 72 74 69 73 65 64 |quote ad|vertised|
|00003610| 2d 75 6e 64 6f 29 20 28 | 71 75 6f 74 65 20 75 6e |-undo) (|quote un|
|00003620| 64 6f 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |do)).(de|falias '|
|00003630| 75 6e 64 6f 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |undo #[(|&optiona|
|00003640| 6c 20 61 72 67 29 20 22 | c0 11 c2 20 c3 20 1c 1d |l arg) "|... . ..|
|00003650| c6 20 c7 20 3d 84 14 00 | c8 c9 21 88 0e 5c 6e cb |. . =...|..!..\n.|
|00003660| 3d 84 5c 22 00 cc 20 88 | cd ce 21 88 cd 0e 0f 86 |=.\".. .|..!.....|
|00003670| 29 00 ce 21 88 0e 10 d1 | 1e 12 89 1e 13 83 5d 00 |)..!....|......].|
|00003680| 0e 12 84 5d 00 0e 13 40 | 83 5d 00 0e 13 40 a8 83 |...]...@|.]...@..|
|00003690| 54 00 c0 16 12 d4 0e 13 | 40 0e 10 5c 22 16 10 0e |T.......|@..\"...|
|000036a0| 13 41 89 16 13 84 36 00 | 2a 0d 83 6b 00 c2 20 84 |.A....6.|*..k.. .|
|000036b0| 6b 00 d5 5c 66 21 88 2a | cb 89 11 87 22 20 5b 74 |k..\f!.*|...." [t|
|000036c0| 20 74 68 69 73 2d 63 6f | 6d 6d 61 6e 64 20 62 75 | this-co|mmand bu|
|000036d0| 66 66 65 72 2d 6d 6f 64 | 69 66 69 65 64 2d 70 20 |ffer-mod|ified-p |
|000036e0| 72 65 63 65 6e 74 2d 61 | 75 74 6f 2d 73 61 76 65 |recent-a|uto-save|
|000036f0| 2d 70 20 72 65 63 65 6e | 74 2d 73 61 76 65 20 6d |-p recen|t-save m|
|00003700| 6f 64 69 66 69 65 64 20 | 73 65 6c 65 63 74 65 64 |odified |selected|
|00003710| 2d 77 69 6e 64 6f 77 20 | 6d 69 6e 69 62 75 66 66 |-window |minibuff|
|00003720| 65 72 2d 77 69 6e 64 6f | 77 20 6d 65 73 73 61 67 |er-windo|w messag|
|00003730| 65 20 22 55 6e 64 6f 21 | 22 20 6c 61 73 74 2d 63 |e "Undo!|" last-c|
|00003740| 6f 6d 6d 61 6e 64 20 75 | 6e 64 6f 20 75 6e 64 6f |ommand u|ndo undo|
|00003750| 2d 73 74 61 72 74 20 75 | 6e 64 6f 2d 6d 6f 72 65 |-start u|ndo-more|
|00003760| 20 31 20 61 72 67 20 62 | 75 66 66 65 72 2d 75 6e | 1 arg b|uffer-un|
|00003770| 64 6f 2d 6c 69 73 74 20 | 6e 69 6c 20 64 6f 6e 65 |do-list |nil done|
|00003780| 20 74 61 69 6c 20 64 65 | 6c 71 20 64 65 6c 65 74 | tail de|lq delet|
|00003790| 65 2d 61 75 74 6f 2d 73 | 61 76 65 2d 66 69 6c 65 |e-auto-s|ave-file|
|000037a0| 2d 69 66 2d 6e 65 63 65 | 73 73 61 72 79 5d 20 34 |-if-nece|ssary] 4|
|000037b0| 20 22 5c 0a 55 6e 64 6f | 20 73 6f 6d 65 20 70 72 | "\.Undo| some pr|
|000037c0| 65 76 69 6f 75 73 20 63 | 68 61 6e 67 65 73 2e 0a |evious c|hanges..|
|000037d0| 52 65 70 65 61 74 20 74 | 68 69 73 20 63 6f 6d 6d |Repeat t|his comm|
|000037e0| 61 6e 64 20 74 6f 20 75 | 6e 64 6f 20 6d 6f 72 65 |and to u|ndo more|
|000037f0| 20 63 68 61 6e 67 65 73 | 2e 0a 41 20 6e 75 6d 65 | changes|..A nume|
|00003800| 72 69 63 20 61 72 67 75 | 6d 65 6e 74 20 73 65 72 |ric argu|ment ser|
|00003810| 76 65 73 20 61 73 20 61 | 20 72 65 70 65 61 74 20 |ves as a| repeat |
|00003820| 63 6f 75 6e 74 2e 22 20 | 22 2a 70 22 5d 29 0a 28 |count." |"*p"]).(|
|00003830| 64 65 66 76 61 72 20 70 | 65 6e 64 69 6e 67 2d 75 |defvar p|ending-u|
|00003840| 6e 64 6f 2d 6c 69 73 74 | 20 6e 69 6c 20 22 5c 0a |ndo-list| nil "\.|
|00003850| 57 69 74 68 69 6e 20 61 | 20 72 75 6e 20 6f 66 20 |Within a| run of |
|00003860| 63 6f 6e 73 65 63 75 74 | 69 76 65 20 75 6e 64 6f |consecut|ive undo|
|00003870| 20 63 6f 6d 6d 61 6e 64 | 73 2c 20 6c 69 73 74 20 | command|s, list |
|00003880| 72 65 6d 61 69 6e 69 6e | 67 20 74 6f 20 62 65 20 |remainin|g to be |
|00003890| 75 6e 64 6f 6e 65 2e 22 | 29 0a 28 64 65 66 61 6c |undone."|).(defal|
|000038a0| 69 61 73 20 27 75 6e 64 | 6f 2d 73 74 61 72 74 20 |ias 'und|o-start |
|000038b0| 23 5b 6e 69 6c 20 22 08 | c1 3d 83 5c 6e 00 c2 c3 |#[nil ".|.=.\n...|
|000038c0| 21 88 08 89 14 87 22 20 | 5b 62 75 66 66 65 72 2d |!....." |[buffer-|
|000038d0| 75 6e 64 6f 2d 6c 69 73 | 74 20 74 20 65 72 72 6f |undo-lis|t t erro|
|000038e0| 72 20 22 4e 6f 20 75 6e | 64 6f 20 69 6e 66 6f 72 |r "No un|do infor|
|000038f0| 6d 61 74 69 6f 6e 20 69 | 6e 20 74 68 69 73 20 62 |mation i|n this b|
|00003900| 75 66 66 65 72 22 20 70 | 65 6e 64 69 6e 67 2d 75 |uffer" p|ending-u|
|00003910| 6e 64 6f 2d 6c 69 73 74 | 5d 20 32 20 22 5c 0a 53 |ndo-list|] 2 "\.S|
|00003920| 65 74 20 60 70 65 6e 64 | 69 6e 67 2d 75 6e 64 6f |et `pend|ing-undo|
|00003930| 2d 6c 69 73 74 27 20 74 | 6f 20 74 68 65 20 66 72 |-list' t|o the fr|
|00003940| 6f 6e 74 20 6f 66 20 74 | 68 65 20 75 6e 64 6f 20 |ont of t|he undo |
|00003950| 6c 69 73 74 2e 0a 54 68 | 65 20 6e 65 78 74 20 63 |list..Th|e next c|
|00003960| 61 6c 6c 20 74 6f 20 60 | 75 6e 64 6f 2d 6d 6f 72 |all to `|undo-mor|
|00003970| 65 27 20 77 69 6c 6c 20 | 75 6e 64 6f 20 74 68 65 |e' will |undo the|
|00003980| 20 6d 6f 73 74 20 72 65 | 63 65 6e 74 6c 79 20 6d | most re|cently m|
|00003990| 61 64 65 20 63 68 61 6e | 67 65 2e 22 5d 29 0a 28 |ade chan|ge."]).(|
|000039a0| 64 65 66 61 6c 69 61 73 | 20 27 75 6e 64 6f 2d 6d |defalias| 'undo-m|
|000039b0| 6f 72 65 20 23 5b 28 63 | 6f 75 6e 74 29 20 22 08 |ore #[(c|ount) ".|
|000039c0| 84 08 00 c1 c2 21 88 c3 | 5c 66 08 5c 22 89 10 87 |.....!..|\f.\"...|
|000039d0| 22 20 5b 70 65 6e 64 69 | 6e 67 2d 75 6e 64 6f 2d |" [pendi|ng-undo-|
|000039e0| 6c 69 73 74 20 65 72 72 | 6f 72 20 22 4e 6f 20 66 |list err|or "No f|
|000039f0| 75 72 74 68 65 72 20 75 | 6e 64 6f 20 69 6e 66 6f |urther u|ndo info|
|00003a00| 72 6d 61 74 69 6f 6e 22 | 20 70 72 69 6d 69 74 69 |rmation"| primiti|
|00003a10| 76 65 2d 75 6e 64 6f 20 | 63 6f 75 6e 74 5d 20 33 |ve-undo |count] 3|
|00003a20| 20 22 5c 0a 55 6e 64 6f | 20 62 61 63 6b 20 4e 20 | "\.Undo| back N |
|00003a30| 75 6e 64 6f 2d 62 6f 75 | 6e 64 61 72 69 65 73 20 |undo-bou|ndaries |
|00003a40| 62 65 79 6f 6e 64 20 77 | 68 61 74 20 77 61 73 20 |beyond w|hat was |
|00003a50| 61 6c 72 65 61 64 79 20 | 75 6e 64 6f 6e 65 20 72 |already |undone r|
|00003a60| 65 63 65 6e 74 6c 79 2e | 0a 43 61 6c 6c 20 60 75 |ecently.|.Call `u|
|00003a70| 6e 64 6f 2d 73 74 61 72 | 74 27 20 74 6f 20 67 65 |ndo-star|t' to ge|
|00003a80| 74 20 72 65 61 64 79 20 | 74 6f 20 75 6e 64 6f 20 |t ready |to undo |
|00003a90| 72 65 63 65 6e 74 20 63 | 68 61 6e 67 65 73 2c 0a |recent c|hanges,.|
|00003aa0| 74 68 65 6e 20 63 61 6c | 6c 20 60 75 6e 64 6f 2d |then cal|l `undo-|
|00003ab0| 6d 6f 72 65 27 20 6f 6e | 65 20 6f 72 20 6d 6f 72 |more' on|e or mor|
|00003ac0| 65 20 74 69 6d 65 73 20 | 74 6f 20 75 6e 64 6f 20 |e times |to undo |
|00003ad0| 74 68 65 6d 2e 22 5d 29 | 0a 28 64 65 66 76 61 72 |them."])|.(defvar|
|00003ae0| 20 73 68 65 6c 6c 2d 63 | 6f 6d 6d 61 6e 64 2d 68 | shell-c|ommand-h|
|00003af0| 69 73 74 6f 72 79 20 6e | 69 6c 20 22 5c 0a 48 69 |istory n|il "\.Hi|
|00003b00| 73 74 6f 72 79 20 6c 69 | 73 74 20 66 6f 72 20 73 |story li|st for s|
|00003b10| 6f 6d 65 20 63 6f 6d 6d | 61 6e 64 73 20 74 68 61 |ome comm|ands tha|
|00003b20| 74 20 72 65 61 64 20 73 | 68 65 6c 6c 20 63 6f 6d |t read s|hell com|
|00003b30| 6d 61 6e 64 73 2e 22 29 | 0a 28 64 65 66 61 6c 69 |mands.")|.(defali|
|00003b40| 61 73 20 27 73 68 65 6c | 6c 2d 63 6f 6d 6d 61 6e |as 'shel|l-comman|
|00003b50| 64 20 23 5b 28 63 6f 6d | 6d 61 6e 64 20 26 6f 70 |d #[(com|mand &op|
|00003b60| 74 69 6f 6e 61 6c 20 66 | 6c 61 67 29 20 22 08 83 |tional f|lag) "..|
|00003b70| 20 00 c1 20 88 c2 20 88 | c3 5c 66 c5 c6 c5 c7 0e | .. .. .|.\f.....|
|00003b80| 08 26 06 88 c9 c6 21 ca | 20 60 70 93 88 62 87 cb |.&....!.| `p..b..|
|00003b90| 20 1e 5c 66 cd 8e ce cf | 0e 08 5c 22 83 8c 00 d0 | .\f....|..\"....|
|00003ba0| d1 21 0e 12 c5 1e 13 1e | 14 1e 15 0e 08 d6 89 94 |.!......|........|
|00003bb0| 4f 16 08 d7 0e 15 21 89 | 16 13 83 5e 00 d8 d9 21 |O.....!.|...^...!|
|00003bc0| 83 5a 00 da 0e 13 21 88 | 82 5e 00 db dc 21 88 8a |.Z....!.|.^...!..|
|00003bd0| 0e 15 71 88 dd 20 88 de | 0e 15 21 88 0e 14 16 12 |..q.. ..|..!.....|
|00003be0| df e0 0e 15 5c 66 c7 0e | 08 25 16 13 e1 16 5c 22 |....\f..|.%....\"|
|00003bf0| e3 0e 13 e4 5c 22 88 e5 | 0e 13 e6 5c 22 2c 82 93 |....\"..|...\",..|
|00003c00| 00 e7 60 60 0e 08 c5 24 | 2a 87 22 20 5b 66 6c 61 |..``...$|*." [fla|
|00003c10| 67 20 62 61 72 66 2d 69 | 66 2d 62 75 66 66 65 72 |g barf-i|f-buffer|
|00003c20| 2d 72 65 61 64 2d 6f 6e | 6c 79 20 70 75 73 68 2d |-read-on|ly push-|
|00003c30| 6d 61 72 6b 20 63 61 6c | 6c 2d 70 72 6f 63 65 73 |mark cal|l-proces|
|00003c40| 73 20 73 68 65 6c 6c 2d | 66 69 6c 65 2d 6e 61 6d |s shell-|file-nam|
|00003c50| 65 20 6e 69 6c 20 74 20 | 22 2d 63 22 20 63 6f 6d |e nil t |"-c" com|
|00003c60| 6d 61 6e 64 20 6d 61 72 | 6b 20 6d 61 72 6b 2d 6d |mand mar|k mark-m|
|00003c70| 61 72 6b 65 72 20 6d 61 | 74 63 68 2d 64 61 74 61 |arker ma|tch-data|
|00003c80| 20 64 61 74 61 20 28 28 | 73 74 6f 72 65 2d 6d 61 | data ((|store-ma|
|00003c90| 74 63 68 2d 64 61 74 61 | 20 64 61 74 61 29 29 20 |tch-data| data)) |
|00003ca0| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 5b 20 |string-m|atch "[ |
|00003cb0| 09 5d 2a 26 5b 20 09 5d | 2a 24 22 20 67 65 74 2d |.]*&[ .]|*$" get-|
|00003cc0| 62 75 66 66 65 72 2d 63 | 72 65 61 74 65 20 22 2a |buffer-c|reate "*|
|00003cd0| 53 68 65 6c 6c 2d 43 6f | 6d 6d 61 6e 64 2a 22 20 |Shell-Co|mmand*" |
|00003ce0| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00003cf0| 79 20 70 72 6f 63 20 64 | 69 72 65 63 74 6f 72 79 |y proc d|irectory|
|00003d00| 20 62 75 66 66 65 72 20 | 30 20 67 65 74 2d 62 75 | buffer |0 get-bu|
|00003d10| 66 66 65 72 2d 70 72 6f | 63 65 73 73 20 79 65 73 |ffer-pro|cess yes|
|00003d20| 2d 6f 72 2d 6e 6f 2d 70 | 20 22 41 20 63 6f 6d 6d |-or-no-p| "A comm|
|00003d30| 61 6e 64 20 69 73 20 72 | 75 6e 6e 69 6e 67 2e 20 |and is r|unning. |
|00003d40| 20 4b 69 6c 6c 20 69 74 | 3f 20 22 20 6b 69 6c 6c | Kill it|? " kill|
|00003d50| 2d 70 72 6f 63 65 73 73 | 20 65 72 72 6f 72 20 22 |-process| error "|
|00003d60| 53 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 69 6e |Shell co|mmand in|
|00003d70| 20 70 72 6f 67 72 65 73 | 73 22 20 65 72 61 73 65 | progres|s" erase|
|00003d80| 2d 62 75 66 66 65 72 20 | 64 69 73 70 6c 61 79 2d |-buffer |display-|
|00003d90| 62 75 66 66 65 72 20 73 | 74 61 72 74 2d 70 72 6f |buffer s|tart-pro|
|00003da0| 63 65 73 73 20 22 53 68 | 65 6c 6c 22 20 28 22 3a |cess "Sh|ell" (":|
|00003db0| 25 73 22 29 20 6d 6f 64 | 65 2d 6c 69 6e 65 2d 70 |%s") mod|e-line-p|
|00003dc0| 72 6f 63 65 73 73 20 73 | 65 74 2d 70 72 6f 63 65 |rocess s|et-proce|
|00003dd0| 73 73 2d 73 65 6e 74 69 | 6e 65 6c 20 73 68 65 6c |ss-senti|nel shel|
|00003de0| 6c 2d 63 6f 6d 6d 61 6e | 64 2d 73 65 6e 74 69 6e |l-comman|d-sentin|
|00003df0| 65 6c 20 73 65 74 2d 70 | 72 6f 63 65 73 73 2d 66 |el set-p|rocess-f|
|00003e00| 69 6c 74 65 72 20 73 68 | 65 6c 6c 2d 63 6f 6d 6d |ilter sh|ell-comm|
|00003e10| 61 6e 64 2d 66 69 6c 74 | 65 72 20 73 68 65 6c 6c |and-filt|er shell|
|00003e20| 2d 63 6f 6d 6d 61 6e 64 | 2d 6f 6e 2d 72 65 67 69 |-command|-on-regi|
|00003e30| 6f 6e 5d 20 38 20 22 5c | 0a 45 78 65 63 75 74 65 |on] 8 "\|.Execute|
|00003e40| 20 73 74 72 69 6e 67 20 | 43 4f 4d 4d 41 4e 44 20 | string |COMMAND |
|00003e50| 69 6e 20 69 6e 66 65 72 | 69 6f 72 20 73 68 65 6c |in infer|ior shel|
|00003e60| 6c 3b 20 64 69 73 70 6c | 61 79 20 6f 75 74 70 75 |l; displ|ay outpu|
|00003e70| 74 2c 20 69 66 20 61 6e | 79 2e 0a 49 66 20 43 4f |t, if an|y..If CO|
|00003e80| 4d 4d 41 4e 44 20 65 6e | 64 73 20 69 6e 20 61 6d |MMAND en|ds in am|
|00003e90| 70 65 72 73 61 6e 64 2c | 20 65 78 65 63 75 74 65 |persand,| execute|
|00003ea0| 20 69 74 20 61 73 79 6e | 63 68 72 6f 6e 6f 75 73 | it asyn|chronous|
|00003eb0| 6c 79 2e 0a 20 0a 4f 70 | 74 69 6f 6e 61 6c 20 73 |ly.. .Op|tional s|
|00003ec0| 65 63 6f 6e 64 20 61 72 | 67 20 6e 6f 6e 2d 6e 69 |econd ar|g non-ni|
|00003ed0| 6c 20 28 70 72 65 66 69 | 78 20 61 72 67 2c 20 69 |l (prefi|x arg, i|
|00003ee0| 66 20 69 6e 74 65 72 61 | 63 74 69 76 65 29 0a 6d |f intera|ctive).m|
|00003ef0| 65 61 6e 73 20 69 6e 73 | 65 72 74 20 6f 75 74 70 |eans ins|ert outp|
|00003f00| 75 74 20 69 6e 20 63 75 | 72 72 65 6e 74 20 62 75 |ut in cu|rrent bu|
|00003f10| 66 66 65 72 20 61 66 74 | 65 72 20 70 6f 69 6e 74 |ffer aft|er point|
|00003f20| 20 28 6c 65 61 76 65 20 | 6d 61 72 6b 20 61 66 74 | (leave |mark aft|
|00003f30| 65 72 20 69 74 29 2e 0a | 54 68 69 73 20 63 61 6e |er it)..|This can|
|00003f40| 6e 6f 74 20 62 65 20 64 | 6f 6e 65 20 61 73 79 6e |not be d|one asyn|
|00003f50| 63 68 72 6f 6e 6f 75 73 | 6c 79 2e 22 20 28 6c 69 |chronous|ly." (li|
|00003f60| 73 74 20 28 72 65 61 64 | 2d 66 72 6f 6d 2d 6d 69 |st (read|-from-mi|
|00003f70| 6e 69 62 75 66 66 65 72 | 20 22 53 68 65 6c 6c 20 |nibuffer| "Shell |
|00003f80| 63 6f 6d 6d 61 6e 64 3a | 20 22 20 6e 69 6c 20 6e |command:| " nil n|
|00003f90| 69 6c 20 6e 69 6c 20 28 | 71 75 6f 74 65 20 73 68 |il nil (|quote sh|
|00003fa0| 65 6c 6c 2d 63 6f 6d 6d | 61 6e 64 2d 68 69 73 74 |ell-comm|and-hist|
|00003fb0| 6f 72 79 29 29 20 63 75 | 72 72 65 6e 74 2d 70 72 |ory)) cu|rrent-pr|
|00003fc0| 65 66 69 78 2d 61 72 67 | 29 5d 29 0a 28 62 79 74 |efix-arg|)]).(byt|
|00003fd0| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 5c 22 88 c0 c3 |e-code "|...\"...|
|00003fe0| c4 5c 22 87 22 20 5b 64 | 65 66 61 6c 69 61 73 20 |.\"." [d|efalias |
|00003ff0| 73 68 65 6c 6c 2d 63 6f | 6d 6d 61 6e 64 2d 73 65 |shell-co|mmand-se|
|00004000| 6e 74 69 6e 65 6c 20 23 | 5b 28 70 72 6f 63 65 73 |ntinel #|[(proces|
|00004010| 73 20 73 69 67 6e 61 6c | 29 20 22 c0 09 21 c2 3e |s signal|) "..!.>|
|00004020| 85 2c 00 c3 c4 09 21 21 | 85 2c 00 c5 c6 c7 09 21 |.,....!!|.,.....!|
|00004030| 41 41 40 0e 08 c9 ca 4f | 23 88 8a c4 09 21 71 88 |AA@....O|#....!q.|
|00004040| cb 16 5c 66 29 cd 09 21 | 87 22 20 5b 70 72 6f 63 |..\f)..!|." [proc|
|00004050| 65 73 73 2d 73 74 61 74 | 75 73 20 70 72 6f 63 65 |ess-stat|us proce|
|00004060| 73 73 20 28 65 78 69 74 | 20 73 69 67 6e 61 6c 29 |ss (exit| signal)|
|00004070| 20 62 75 66 66 65 72 2d | 6e 61 6d 65 20 70 72 6f | buffer-|name pro|
|00004080| 63 65 73 73 2d 62 75 66 | 66 65 72 20 6d 65 73 73 |cess-buf|fer mess|
|00004090| 61 67 65 20 22 25 73 3a | 20 25 73 2e 22 20 70 72 |age "%s:| %s." pr|
|000040a0| 6f 63 65 73 73 2d 63 6f | 6d 6d 61 6e 64 20 73 69 |ocess-co|mmand si|
|000040b0| 67 6e 61 6c 20 30 20 2d | 31 20 6e 69 6c 20 6d 6f |gnal 0 -|1 nil mo|
|000040c0| 64 65 2d 6c 69 6e 65 2d | 70 72 6f 63 65 73 73 20 |de-line-|process |
|000040d0| 64 65 6c 65 74 65 2d 70 | 72 6f 63 65 73 73 5d 20 |delete-p|rocess] |
|000040e0| 36 5d 20 73 68 65 6c 6c | 2d 63 6f 6d 6d 61 6e 64 |6] shell|-command|
|000040f0| 2d 66 69 6c 74 65 72 20 | 23 5b 28 70 72 6f 63 20 |-filter |#[(proc |
|00004100| 73 74 72 69 6e 67 29 20 | 22 70 18 c1 5c 6e 21 1b |string) |"p..\n!.|
|00004110| c4 1d c6 0b 21 1e 07 c8 | 0e 07 21 1e 09 ca 8e 0b |....!...|..!.....|
|00004120| 71 88 60 64 55 84 20 00 | 60 15 64 62 88 cb 0e 5c |q.`dU. .|`.db...\|
|00004130| 66 21 2e 06 87 22 20 5b | 6f 62 75 66 20 70 72 6f |f!..." [|obuf pro|
|00004140| 63 65 73 73 2d 62 75 66 | 66 65 72 20 70 72 6f 63 |cess-buf|fer proc|
|00004150| 20 62 75 66 66 65 72 20 | 6e 69 6c 20 6f 70 6f 69 | buffer |nil opoi|
|00004160| 6e 74 20 67 65 74 2d 62 | 75 66 66 65 72 2d 77 69 |nt get-b|uffer-wi|
|00004170| 6e 64 6f 77 20 77 69 6e | 64 6f 77 20 77 69 6e 64 |ndow win|dow wind|
|00004180| 6f 77 2d 73 74 61 72 74 | 20 70 6f 73 20 28 28 62 |ow-start| pos ((b|
|00004190| 79 74 65 2d 63 6f 64 65 | 20 22 c0 09 5c 6e 5c 22 |yte-code| "..\n\"|
|000041a0| 88 0b 83 5c 66 00 0b 62 | 88 5c 66 71 87 22 20 5b |...\f..b|.\fq." [|
|000041b0| 73 65 74 2d 77 69 6e 64 | 6f 77 2d 73 74 61 72 74 |set-wind|ow-start|
|000041c0| 20 77 69 6e 64 6f 77 20 | 70 6f 73 20 6f 70 6f 69 | window |pos opoi|
|000041d0| 6e 74 20 6f 62 75 66 5d | 20 33 29 29 20 69 6e 73 |nt obuf]| 3)) ins|
|000041e0| 65 72 74 2d 62 65 66 6f | 72 65 2d 6d 61 72 6b 65 |ert-befo|re-marke|
|000041f0| 72 73 20 73 74 72 69 6e | 67 5d 20 32 5d 5d 20 33 |rs strin|g] 2]] 3|
|00004200| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 68 65 |).(defal|ias 'she|
|00004210| 6c 6c 2d 63 6f 6d 6d 61 | 6e 64 2d 6f 6e 2d 72 65 |ll-comma|nd-on-re|
|00004220| 67 69 6f 6e 20 23 5b 28 | 73 74 61 72 74 20 65 6e |gion #[(|start en|
|00004230| 64 20 63 6f 6d 6d 61 6e | 64 20 26 6f 70 74 69 6f |d comman|d &optio|
|00004240| 6e 61 6c 20 66 6c 61 67 | 20 69 6e 74 65 72 61 63 |nal flag| interac|
|00004250| 74 69 76 65 29 20 22 08 | 83 46 00 09 85 5c 66 00 |tive) ".|.F...\f.|
|00004260| 60 c2 20 57 1b 09 83 14 | 00 c4 20 88 c5 0e 06 0e |`. W....|.. .....|
|00004270| 07 0e 08 c9 89 ca cb 0e | 5c 66 26 08 88 cd ce 21 |........|\f&....!|
|00004280| 89 1e 0f 83 39 00 0e 0f | 70 3d 84 39 00 d0 0e 0f |....9...|p=.9....|
|00004290| 21 88 29 09 85 44 00 0b | 85 44 00 d1 20 29 87 d2 |!.)..D..|.D.. )..|
|000042a0| ce 21 ca 1e 13 1e 14 d5 | 8e 0e 14 70 3d 83 76 00 |.!......|...p=.v.|
|000042b0| 0e 07 64 7c 88 65 0e 06 | 7c 88 c5 65 64 0e 08 c9 |..d|.e..||..ed...|
|000042c0| 89 ca cb 0e 5c 66 26 08 | 88 c9 89 16 13 82 94 00 |....\f&.|........|
|000042d0| 8a 0e 14 71 88 d6 20 88 | 29 c5 0e 06 0e 07 0e 08 |...q.. .|).......|
|000042e0| ca 0e 14 ca cb 0e 5c 66 | 26 08 88 c9 89 16 13 2b |......\f|&......+|
|000042f0| 87 22 20 5b 66 6c 61 67 | 20 69 6e 74 65 72 61 63 |." [flag| interac|
|00004300| 74 69 76 65 20 6d 61 72 | 6b 20 73 77 61 70 20 70 |tive mar|k swap p|
|00004310| 75 73 68 2d 6d 61 72 6b | 20 63 61 6c 6c 2d 70 72 |ush-mark| call-pr|
|00004320| 6f 63 65 73 73 2d 72 65 | 67 69 6f 6e 20 73 74 61 |ocess-re|gion sta|
|00004330| 72 74 20 65 6e 64 20 73 | 68 65 6c 6c 2d 66 69 6c |rt end s|hell-fil|
|00004340| 65 2d 6e 61 6d 65 20 74 | 20 6e 69 6c 20 22 2d 63 |e-name t| nil "-c|
|00004350| 22 20 63 6f 6d 6d 61 6e | 64 20 67 65 74 2d 62 75 |" comman|d get-bu|
|00004360| 66 66 65 72 20 22 2a 53 | 68 65 6c 6c 20 43 6f 6d |ffer "*S|hell Com|
|00004370| 6d 61 6e 64 20 4f 75 74 | 70 75 74 2a 22 20 73 68 |mand Out|put*" sh|
|00004380| 65 6c 6c 2d 62 75 66 66 | 65 72 20 6b 69 6c 6c 2d |ell-buff|er kill-|
|00004390| 62 75 66 66 65 72 20 65 | 78 63 68 61 6e 67 65 2d |buffer e|xchange-|
|000043a0| 70 6f 69 6e 74 2d 61 6e | 64 2d 6d 61 72 6b 20 67 |point-an|d-mark g|
|000043b0| 65 74 2d 62 75 66 66 65 | 72 2d 63 72 65 61 74 65 |et-buffe|r-create|
|000043c0| 20 73 75 63 63 65 73 73 | 20 62 75 66 66 65 72 20 | success| buffer |
|000043d0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 8a 08 71 |((byte-c|ode "..q|
|000043e0| 88 c1 20 c2 55 83 0f 00 | c2 82 13 00 c3 65 64 5c |.. .U...|.....ed\|
|000043f0| 22 29 89 1c c2 55 83 2a | 00 0d 83 23 00 c6 c7 21 |")...U.*|...#...!|
|00004400| 88 c8 08 21 88 82 50 00 | 0d 83 49 00 5c 66 c9 55 |...!..P.|..I.\f.U|
|00004410| 83 49 00 c6 ca 8a 08 71 | 88 65 62 88 60 cb 7f 88 |.I.....q|.eb.`...|
|00004420| 60 7b 29 5c 22 88 82 50 | 00 cc cd 08 21 c9 5c 22 |`{)\"..P|....!.\"|
|00004430| 88 29 cb 87 22 20 5b 62 | 75 66 66 65 72 20 62 75 |.).." [b|uffer bu|
|00004440| 66 66 65 72 2d 73 69 7a | 65 20 30 20 63 6f 75 6e |ffer-siz|e 0 coun|
|00004450| 74 2d 6c 69 6e 65 73 20 | 6c 69 6e 65 73 20 73 75 |t-lines |lines su|
|00004460| 63 63 65 73 73 20 6d 65 | 73 73 61 67 65 20 22 28 |ccess me|ssage "(|
|00004470| 53 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 63 6f |Shell co|mmand co|
|00004480| 6d 70 6c 65 74 65 64 20 | 77 69 74 68 20 6e 6f 20 |mpleted |with no |
|00004490| 6f 75 74 70 75 74 29 22 | 20 6b 69 6c 6c 2d 62 75 |output)"| kill-bu|
|000044a0| 66 66 65 72 20 31 20 22 | 25 73 22 20 6e 69 6c 20 |ffer 1 "|%s" nil |
|000044b0| 73 65 74 2d 77 69 6e 64 | 6f 77 2d 73 74 61 72 74 |set-wind|ow-start|
|000044c0| 20 64 69 73 70 6c 61 79 | 2d 62 75 66 66 65 72 5d | display|-buffer]|
|000044d0| 20 35 29 29 20 65 72 61 | 73 65 2d 62 75 66 66 65 | 5)) era|se-buffe|
|000044e0| 72 5d 20 31 30 20 22 5c | 0a 45 78 65 63 75 74 65 |r] 10 "\|.Execute|
|000044f0| 20 73 74 72 69 6e 67 20 | 43 4f 4d 4d 41 4e 44 20 | string |COMMAND |
|00004500| 69 6e 20 69 6e 66 65 72 | 69 6f 72 20 73 68 65 6c |in infer|ior shel|
|00004510| 6c 20 77 69 74 68 20 72 | 65 67 69 6f 6e 20 61 73 |l with r|egion as|
|00004520| 20 69 6e 70 75 74 2e 0a | 4e 6f 72 6d 61 6c 6c 79 | input..|Normally|
|00004530| 20 64 69 73 70 6c 61 79 | 20 6f 75 74 70 75 74 20 | display| output |
|00004540| 28 69 66 20 61 6e 79 29 | 20 69 6e 20 74 65 6d 70 |(if any)| in temp|
|00004550| 20 62 75 66 66 65 72 20 | 60 2a 53 68 65 6c 6c 20 | buffer |`*Shell |
|00004560| 43 6f 6d 6d 61 6e 64 20 | 4f 75 74 70 75 74 2a 27 |Command |Output*'|
|00004570| 3b 0a 50 72 65 66 69 78 | 20 61 72 67 20 6d 65 61 |;.Prefix| arg mea|
|00004580| 6e 73 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 72 |ns repla|ce the r|
|00004590| 65 67 69 6f 6e 20 77 69 | 74 68 20 69 74 2e 0a 4e |egion wi|th it..N|
|000045a0| 6f 6e 69 6e 74 65 72 61 | 63 74 69 76 65 20 61 72 |onintera|ctive ar|
|000045b0| 67 73 20 61 72 65 20 53 | 54 41 52 54 2c 20 45 4e |gs are S|TART, EN|
|000045c0| 44 2c 20 43 4f 4d 4d 41 | 4e 44 2c 20 46 4c 41 47 |D, COMMA|ND, FLAG|
|000045d0| 2e 0a 4e 6f 6e 69 6e 74 | 65 72 61 63 74 69 76 65 |..Nonint|eractive|
|000045e0| 6c 79 20 46 4c 41 47 20 | 6d 65 61 6e 73 20 69 6e |ly FLAG |means in|
|000045f0| 73 65 72 74 20 6f 75 74 | 70 75 74 20 69 6e 20 70 |sert out|put in p|
|00004600| 6c 61 63 65 20 6f 66 20 | 74 65 78 74 20 66 72 6f |lace of |text fro|
|00004610| 6d 20 53 54 41 52 54 20 | 74 6f 20 45 4e 44 2c 0a |m START |to END,.|
|00004620| 61 6e 64 20 70 75 74 20 | 70 6f 69 6e 74 20 61 74 |and put |point at|
|00004630| 20 74 68 65 20 65 6e 64 | 2c 20 62 75 74 20 64 6f | the end|, but do|
|00004640| 6e 27 74 20 61 6c 74 65 | 72 20 74 68 65 20 6d 61 |n't alte|r the ma|
|00004650| 72 6b 2e 0a 0a 49 66 20 | 74 68 65 20 6f 75 74 70 |rk...If |the outp|
|00004660| 75 74 20 69 73 20 6f 6e | 65 20 6c 69 6e 65 2c 20 |ut is on|e line, |
|00004670| 69 74 20 69 73 20 64 69 | 73 70 6c 61 79 65 64 20 |it is di|splayed |
|00004680| 69 6e 20 74 68 65 20 65 | 63 68 6f 20 61 72 65 61 |in the e|cho area|
|00004690| 2c 0a 62 75 74 20 69 74 | 20 69 73 20 6e 6f 6e 65 |,.but it| is none|
|000046a0| 74 68 65 6c 65 73 73 20 | 61 76 61 69 6c 61 62 6c |theless |availabl|
|000046b0| 65 20 69 6e 20 62 75 66 | 66 65 72 20 60 2a 53 68 |e in buf|fer `*Sh|
|000046c0| 65 6c 6c 20 43 6f 6d 6d | 61 6e 64 20 4f 75 74 70 |ell Comm|and Outp|
|000046d0| 75 74 2a 27 0a 65 76 65 | 6e 20 74 68 6f 75 67 68 |ut*'.eve|n though|
|000046e0| 20 74 68 61 74 20 62 75 | 66 66 65 72 20 69 73 20 | that bu|ffer is |
|000046f0| 6e 6f 74 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |not auto|maticall|
|00004700| 79 20 64 69 73 70 6c 61 | 79 65 64 2e 20 20 49 66 |y displa|yed. If|
|00004710| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6f 75 74 | there i|s no out|
|00004720| 70 75 74 0a 6f 72 20 6f | 75 74 70 75 74 20 69 73 |put.or o|utput is|
|00004730| 20 69 6e 73 65 72 74 65 | 64 20 69 6e 20 74 68 65 | inserte|d in the|
|00004740| 20 63 75 72 72 65 6e 74 | 20 62 75 66 66 65 72 20 | current| buffer |
|00004750| 74 68 65 6e 20 60 2a 53 | 68 65 6c 6c 20 43 6f 6d |then `*S|hell Com|
|00004760| 6d 61 6e 64 20 4f 75 74 | 70 75 74 2a 27 20 69 73 |mand Out|put*' is|
|00004770| 0a 64 65 6c 65 74 65 64 | 2e 22 20 28 6c 69 73 74 |.deleted|." (list|
|00004780| 20 28 72 65 67 69 6f 6e | 2d 62 65 67 69 6e 6e 69 | (region|-beginni|
|00004790| 6e 67 29 20 28 72 65 67 | 69 6f 6e 2d 65 6e 64 29 |ng) (reg|ion-end)|
|000047a0| 20 28 72 65 61 64 2d 66 | 72 6f 6d 2d 6d 69 6e 69 | (read-f|rom-mini|
|000047b0| 62 75 66 66 65 72 20 22 | 53 68 65 6c 6c 20 63 6f |buffer "|Shell co|
|000047c0| 6d 6d 61 6e 64 20 6f 6e | 20 72 65 67 69 6f 6e 3a |mmand on| region:|
|000047d0| 20 22 20 6e 69 6c 20 6e | 69 6c 20 6e 69 6c 20 28 | " nil n|il nil (|
|000047e0| 71 75 6f 74 65 20 73 68 | 65 6c 6c 2d 63 6f 6d 6d |quote sh|ell-comm|
|000047f0| 61 6e 64 2d 68 69 73 74 | 6f 72 79 29 29 20 63 75 |and-hist|ory)) cu|
|00004800| 72 72 65 6e 74 2d 70 72 | 65 66 69 78 2d 61 72 67 |rrent-pr|efix-arg|
|00004810| 20 28 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 | (prefix|-numeric|
|00004820| 2d 76 61 6c 75 65 20 63 | 75 72 72 65 6e 74 2d 70 |-value c|urrent-p|
|00004830| 72 65 66 69 78 2d 61 72 | 67 29 29 5d 29 0a 28 64 |refix-ar|g))]).(d|
|00004840| 65 66 61 6c 69 61 73 20 | 27 75 6e 69 76 65 72 73 |efalias |'univers|
|00004850| 61 6c 2d 61 72 67 75 6d | 65 6e 74 20 23 5b 6e 69 |al-argum|ent #[ni|
|00004860| 6c 20 22 c0 c1 1a 1b c4 | c1 c5 5c 22 12 c6 5c 6e |l ".....|..\"..\n|
|00004870| 21 c7 9a 83 1d 00 0b c0 | 5f 13 c4 c1 c5 5c 22 12 |!.......|_....\".|
|00004880| 82 09 00 c8 5c 6e 0b c1 | 23 2a 87 22 20 5b 34 20 |....\n..|#*." [4 |
|00004890| 6e 69 6c 20 6b 65 79 20 | 66 61 63 74 6f 72 20 72 |nil key |factor r|
|000048a0| 65 61 64 2d 6b 65 79 2d | 73 65 71 75 65 6e 63 65 |ead-key-|sequence|
|000048b0| 20 74 20 6b 65 79 2d 62 | 69 6e 64 69 6e 67 20 75 | t key-b|inding u|
|000048c0| 6e 69 76 65 72 73 61 6c | 2d 61 72 67 75 6d 65 6e |niversal|-argumen|
|000048d0| 74 20 70 72 65 66 69 78 | 2d 61 72 67 2d 69 6e 74 |t prefix|-arg-int|
|000048e0| 65 72 6e 61 6c 5d 20 34 | 20 22 5c 0a 42 65 67 69 |ernal] 4| "\.Begi|
|000048f0| 6e 20 61 20 6e 75 6d 65 | 72 69 63 20 61 72 67 75 |n a nume|ric argu|
|00004900| 6d 65 6e 74 20 66 6f 72 | 20 74 68 65 20 66 6f 6c |ment for| the fol|
|00004910| 6c 6f 77 69 6e 67 20 63 | 6f 6d 6d 61 6e 64 2e 0a |lowing c|ommand..|
|00004920| 44 69 67 69 74 73 20 6f | 72 20 6d 69 6e 75 73 20 |Digits o|r minus |
|00004930| 73 69 67 6e 20 66 6f 6c | 6c 6f 77 69 6e 67 20 5c |sign fol|lowing \|
|00004940| 5c 5b 75 6e 69 76 65 72 | 73 61 6c 2d 61 72 67 75 |\[univer|sal-argu|
|00004950| 6d 65 6e 74 5d 20 6d 61 | 6b 65 20 75 70 20 74 68 |ment] ma|ke up th|
|00004960| 65 20 6e 75 6d 65 72 69 | 63 20 61 72 67 75 6d 65 |e numeri|c argume|
|00004970| 6e 74 2e 0a 5c 5c 5b 75 | 6e 69 76 65 72 73 61 6c |nt..\\[u|niversal|
|00004980| 2d 61 72 67 75 6d 65 6e | 74 5d 20 66 6f 6c 6c 6f |-argumen|t] follo|
|00004990| 77 69 6e 67 20 74 68 65 | 20 64 69 67 69 74 73 20 |wing the| digits |
|000049a0| 6f 72 20 6d 69 6e 75 73 | 20 73 69 67 6e 20 65 6e |or minus| sign en|
|000049b0| 64 73 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 2e |ds the a|rgument.|
|000049c0| 0a 5c 5c 5b 75 6e 69 76 | 65 72 73 61 6c 2d 61 72 |.\\[univ|ersal-ar|
|000049d0| 67 75 6d 65 6e 74 5d 20 | 77 69 74 68 6f 75 74 20 |gument] |without |
|000049e0| 64 69 67 69 74 73 20 6f | 72 20 6d 69 6e 75 73 20 |digits o|r minus |
|000049f0| 73 69 67 6e 20 70 72 6f | 76 69 64 65 73 20 34 20 |sign pro|vides 4 |
|00004a00| 61 73 20 61 72 67 75 6d | 65 6e 74 2e 0a 52 65 70 |as argum|ent..Rep|
|00004a10| 65 61 74 69 6e 67 20 5c | 5c 5b 75 6e 69 76 65 72 |eating \|\[univer|
|00004a20| 73 61 6c 2d 61 72 67 75 | 6d 65 6e 74 5d 20 77 69 |sal-argu|ment] wi|
|00004a30| 74 68 6f 75 74 20 64 69 | 67 69 74 73 20 6f 72 20 |thout di|gits or |
|00004a40| 6d 69 6e 75 73 20 73 69 | 67 6e 0a 20 6d 75 6c 74 |minus si|gn. mult|
|00004a50| 69 70 6c 69 65 73 20 74 | 68 65 20 61 72 67 75 6d |iplies t|he argum|
|00004a60| 65 6e 74 20 62 79 20 34 | 20 65 61 63 68 20 74 69 |ent by 4| each ti|
|00004a70| 6d 65 2e 22 20 6e 69 6c | 5d 29 0a 28 62 79 74 65 |me." nil|]).(byte|
|00004a80| 2d 63 6f 64 65 20 22 c0 | c1 c2 5c 22 88 c0 c3 c4 |-code ".|..\"....|
|00004a90| 5c 22 87 22 20 5b 64 65 | 66 61 6c 69 61 73 20 70 |\"." [de|falias p|
|00004aa0| 72 65 66 69 78 2d 61 72 | 67 2d 69 6e 74 65 72 6e |refix-ar|g-intern|
|00004ab0| 61 6c 20 23 5b 28 6b 65 | 79 20 66 61 63 74 6f 72 |al #[(ke|y factor|
|00004ac0| 20 76 61 6c 75 65 29 20 | 22 c0 19 5c 6e a7 83 12 | value) |"..\n...|
|00004ad0| 00 5c 6e c3 57 83 12 00 | c4 11 5c 6e 5b 12 5c 6e |.\n.W...|..\n[.\n|
|00004ae0| c5 3d 83 1c 00 c4 11 c6 | 12 0e 07 c8 9a 83 33 00 |.=......|......3.|
|00004af0| 09 5b 11 c6 16 09 ca c6 | cb 5c 22 89 16 07 82 1e |.[......|.\".....|
|00004b00| 00 0e 07 3b 83 70 00 0e | 07 47 c0 55 83 70 00 0e |...;.p..|.G.U.p..|
|00004b10| 07 cc 99 84 70 00 cd 0e | 07 99 84 70 00 5c 6e a7 |....p...|...p.\n.|
|00004b20| 83 58 00 5c 6e 82 59 00 | c3 ce 5f 0e 07 c3 48 cf |.X.\n.Y.|.._...H.|
|00004b30| 5a 5c 5c 12 c6 16 09 ca | c6 cb 5c 22 89 16 07 82 |Z\\.....|..\"....|
|00004b40| 35 00 0e 09 83 7b 00 0e | 09 43 82 8d 00 5c 6e a7 |5....{..|.C...\n.|
|00004b50| 83 86 00 5c 6e 09 5f 82 | 8d 00 09 c4 55 85 8d 00 |...\n._.|....U...|
|00004b60| c5 16 10 d1 0e 07 21 d2 | 3d 83 a3 00 d3 5c 6e 09 |......!.|=....\n.|
|00004b70| 5c 22 88 ca c6 cb 5c 22 | 16 07 d4 0e 07 21 89 16 |\"....\"|.....!..|
|00004b80| 15 29 87 22 20 5b 31 20 | 73 69 67 6e 20 76 61 6c |.)." [1 |sign val|
|00004b90| 75 65 20 30 20 2d 31 20 | 2d 20 6e 69 6c 20 6b 65 |ue 0 -1 |- nil ke|
|00004ba0| 79 20 22 2d 22 20 66 61 | 63 74 6f 72 20 72 65 61 |y "-" fa|ctor rea|
|00004bb0| 64 2d 6b 65 79 2d 73 65 | 71 75 65 6e 63 65 20 74 |d-key-se|quence t|
|00004bc0| 20 22 30 22 20 22 39 22 | 20 31 30 20 34 38 20 70 | "0" "9"| 10 48 p|
|00004bd0| 72 65 66 69 78 2d 61 72 | 67 20 6b 65 79 2d 62 69 |refix-ar|g key-bi|
|00004be0| 6e 64 69 6e 67 20 75 6e | 69 76 65 72 73 61 6c 2d |nding un|iversal-|
|00004bf0| 61 72 67 75 6d 65 6e 74 | 20 64 65 73 63 72 69 62 |argument| describ|
|00004c00| 65 2d 61 72 67 20 6c 69 | 73 74 69 66 79 2d 6b 65 |e-arg li|stify-ke|
|00004c10| 79 2d 73 65 71 75 65 6e | 63 65 20 75 6e 72 65 61 |y-sequen|ce unrea|
|00004c20| 64 2d 63 6f 6d 6d 61 6e | 64 2d 65 76 65 6e 74 73 |d-comman|d-events|
|00004c30| 5d 20 34 5d 20 64 65 73 | 63 72 69 62 65 2d 61 72 |] 4] des|cribe-ar|
|00004c40| 67 20 23 5b 28 76 61 6c | 75 65 20 73 69 67 6e 29 |g #[(val|ue sign)|
|00004c50| 20 22 08 a7 83 5c 66 00 | c1 c2 08 0b 5f 5c 22 87 | "...\f.|...._\".|
|00004c60| 08 3a 83 17 00 c1 c4 08 | 40 5c 22 87 0b c5 57 85 |.:......|@\"...W.|
|00004c70| 20 00 c1 c6 21 87 22 20 | 5b 76 61 6c 75 65 20 6d | ...!." |[value m|
|00004c80| 65 73 73 61 67 65 20 22 | 41 72 67 3a 20 25 64 22 |essage "|Arg: %d"|
|00004c90| 20 73 69 67 6e 20 22 41 | 72 67 3a 20 5b 25 64 5d | sign "A|rg: [%d]|
|00004ca0| 22 20 30 20 22 41 72 67 | 3a 20 2d 22 5d 20 34 5d |" 0 "Arg|: -"] 4]|
|00004cb0| 5d 20 33 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |] 3).(de|falias '|
|00004cc0| 64 69 67 69 74 2d 61 72 | 67 75 6d 65 6e 74 20 23 |digit-ar|gument #|
|00004cd0| 5b 28 61 72 67 29 20 22 | c0 c1 c2 0b c4 5c 22 21 |[(arg) "|.....\"!|
|00004ce0| c5 0e 06 23 87 22 20 5b | 70 72 65 66 69 78 2d 61 |...#." [|prefix-a|
|00004cf0| 72 67 2d 69 6e 74 65 72 | 6e 61 6c 20 63 68 61 72 |rg-inter|nal char|
|00004d00| 2d 74 6f 2d 73 74 72 69 | 6e 67 20 6c 6f 67 61 6e |-to-stri|ng logan|
|00004d10| 64 20 6c 61 73 74 2d 63 | 6f 6d 6d 61 6e 64 2d 63 |d last-c|ommand-c|
|00004d20| 68 61 72 20 31 32 37 20 | 6e 69 6c 20 61 72 67 5d |har 127 |nil arg]|
|00004d30| 20 35 20 22 5c 0a 50 61 | 72 74 20 6f 66 20 74 68 | 5 "\.Pa|rt of th|
|00004d40| 65 20 6e 75 6d 65 72 69 | 63 20 61 72 67 75 6d 65 |e numeri|c argume|
|00004d50| 6e 74 20 66 6f 72 20 74 | 68 65 20 6e 65 78 74 20 |nt for t|he next |
|00004d60| 63 6f 6d 6d 61 6e 64 2e | 0a 5c 5c 5b 75 6e 69 76 |command.|.\\[univ|
|00004d70| 65 72 73 61 6c 2d 61 72 | 67 75 6d 65 6e 74 5d 20 |ersal-ar|gument] |
|00004d80| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 69 67 69 74 73 |followin|g digits|
|00004d90| 20 6f 72 20 6d 69 6e 75 | 73 20 73 69 67 6e 20 65 | or minu|s sign e|
|00004da0| 6e 64 73 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 |nds the |argument|
|00004db0| 2e 22 20 22 50 22 5d 29 | 0a 28 64 65 66 61 6c 69 |." "P"])|.(defali|
|00004dc0| 61 73 20 27 6e 65 67 61 | 74 69 76 65 2d 61 72 67 |as 'nega|tive-arg|
|00004dd0| 75 6d 65 6e 74 20 23 5b | 28 61 72 67 29 20 22 c0 |ument #[|(arg) ".|
|00004de0| c1 c2 0b 23 87 22 20 5b | 70 72 65 66 69 78 2d 61 |...#." [|prefix-a|
|00004df0| 72 67 2d 69 6e 74 65 72 | 6e 61 6c 20 22 2d 22 20 |rg-inter|nal "-" |
|00004e00| 6e 69 6c 20 61 72 67 5d | 20 34 20 22 5c 0a 42 65 |nil arg]| 4 "\.Be|
|00004e10| 67 69 6e 20 61 20 6e 65 | 67 61 74 69 76 65 20 6e |gin a ne|gative n|
|00004e20| 75 6d 65 72 69 63 20 61 | 72 67 75 6d 65 6e 74 20 |umeric a|rgument |
|00004e30| 66 6f 72 20 74 68 65 20 | 6e 65 78 74 20 63 6f 6d |for the |next com|
|00004e40| 6d 61 6e 64 2e 0a 5c 5c | 5b 75 6e 69 76 65 72 73 |mand..\\|[univers|
|00004e50| 61 6c 2d 61 72 67 75 6d | 65 6e 74 5d 20 66 6f 6c |al-argum|ent] fol|
|00004e60| 6c 6f 77 69 6e 67 20 64 | 69 67 69 74 73 20 6f 72 |lowing d|igits or|
|00004e70| 20 6d 69 6e 75 73 20 73 | 69 67 6e 20 65 6e 64 73 | minus s|ign ends|
|00004e80| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 2e 22 20 | the arg|ument." |
|00004e90| 22 50 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |"P"]).(d|efalias |
|00004ea0| 27 66 6f 72 77 61 72 64 | 2d 74 6f 2d 69 6e 64 65 |'forward|-to-inde|
|00004eb0| 6e 74 61 74 69 6f 6e 20 | 23 5b 28 61 72 67 29 20 |ntation |#[(arg) |
|00004ec0| 22 08 79 88 c1 c2 77 87 | 22 20 5b 61 72 67 20 22 |".y...w.|" [arg "|
|00004ed0| 20 09 22 20 6e 69 6c 5d | 20 32 20 22 5c 0a 4d 6f | ." nil]| 2 "\.Mo|
|00004ee0| 76 65 20 66 6f 72 77 61 | 72 64 20 41 52 47 20 6c |ve forwa|rd ARG l|
|00004ef0| 69 6e 65 73 20 61 6e 64 | 20 70 6f 73 69 74 69 6f |ines and| positio|
|00004f00| 6e 20 61 74 20 66 69 72 | 73 74 20 6e 6f 6e 62 6c |n at fir|st nonbl|
|00004f10| 61 6e 6b 20 63 68 61 72 | 61 63 74 65 72 2e 22 20 |ank char|acter." |
|00004f20| 22 70 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |"p"]).(d|efalias |
|00004f30| 27 62 61 63 6b 77 61 72 | 64 2d 74 6f 2d 69 6e 64 |'backwar|d-to-ind|
|00004f40| 65 6e 74 61 74 69 6f 6e | 20 23 5b 28 61 72 67 29 |entation| #[(arg)|
|00004f50| 20 22 08 5b 79 88 c1 c2 | 77 87 22 20 5b 61 72 67 | ".[y...|w." [arg|
|00004f60| 20 22 20 09 22 20 6e 69 | 6c 5d 20 32 20 22 5c 0a | " ." ni|l] 2 "\.|
|00004f70| 4d 6f 76 65 20 62 61 63 | 6b 77 61 72 64 20 41 52 |Move bac|kward AR|
|00004f80| 47 20 6c 69 6e 65 73 20 | 61 6e 64 20 70 6f 73 69 |G lines |and posi|
|00004f90| 74 69 6f 6e 20 61 74 20 | 66 69 72 73 74 20 6e 6f |tion at |first no|
|00004fa0| 6e 62 6c 61 6e 6b 20 63 | 68 61 72 61 63 74 65 72 |nblank c|haracter|
|00004fb0| 2e 22 20 22 70 22 5d 29 | 0a 28 64 65 66 76 61 72 |." "p"])|.(defvar|
|00004fc0| 20 6b 69 6c 6c 2d 77 68 | 6f 6c 65 2d 6c 69 6e 65 | kill-wh|ole-line|
|00004fd0| 20 6e 69 6c 20 22 5c 0a | 2a 49 66 20 6e 6f 6e 2d | nil "\.|*If non-|
|00004fe0| 6e 69 6c 2c 20 60 6b 69 | 6c 6c 2d 6c 69 6e 65 27 |nil, `ki|ll-line'|
|00004ff0| 20 77 69 74 68 20 6e 6f | 20 61 72 67 20 61 74 20 | with no| arg at |
|00005000| 62 65 67 20 6f 66 20 6c | 69 6e 65 20 6b 69 6c 6c |beg of l|ine kill|
|00005010| 73 20 74 68 65 20 77 68 | 6f 6c 65 20 6c 69 6e 65 |s the wh|ole line|
|00005020| 2e 22 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 6b |.").(def|alias 'k|
|00005030| 69 6c 6c 2d 6c 69 6e 65 | 20 23 5b 28 26 6f 70 74 |ill-line| #[(&opt|
|00005040| 69 6f 6e 61 6c 20 61 72 | 67 29 20 22 c0 60 09 83 |ional ar|g) ".`..|
|00005050| 0e 00 c2 09 21 79 88 82 | 2f 00 6d 83 17 00 c3 c4 |....!y..|/.m.....|
|00005060| c5 5c 22 88 c6 c7 21 84 | 26 00 0e 08 83 2c 00 6e |.\"...!.|&....,.n|
|00005070| 83 2c 00 c9 79 88 82 2f | 00 c5 7f 88 60 5c 22 87 |.,..y../|....`\".|
|00005080| 22 20 5b 6b 69 6c 6c 2d | 72 65 67 69 6f 6e 20 61 |" [kill-|region a|
|00005090| 72 67 20 70 72 65 66 69 | 78 2d 6e 75 6d 65 72 69 |rg prefi|x-numeri|
|000050a0| 63 2d 76 61 6c 75 65 20 | 73 69 67 6e 61 6c 20 65 |c-value |signal e|
|000050b0| 6e 64 2d 6f 66 2d 62 75 | 66 66 65 72 20 6e 69 6c |nd-of-bu|ffer nil|
|000050c0| 20 6c 6f 6f 6b 69 6e 67 | 2d 61 74 20 22 5b 20 09 | looking|-at "[ .|
|000050d0| 5d 2a 24 22 20 6b 69 6c | 6c 2d 77 68 6f 6c 65 2d |]*$" kil|l-whole-|
|000050e0| 6c 69 6e 65 20 31 5d 20 | 35 20 22 5c 0a 4b 69 6c |line 1] |5 "\.Kil|
|000050f0| 6c 20 74 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |l the re|st of th|
|00005100| 65 20 63 75 72 72 65 6e | 74 20 6c 69 6e 65 3b 20 |e curren|t line; |
|00005110| 69 66 20 6e 6f 20 6e 6f | 6e 62 6c 61 6e 6b 73 20 |if no no|nblanks |
|00005120| 74 68 65 72 65 2c 20 6b | 69 6c 6c 20 74 68 72 75 |there, k|ill thru|
|00005130| 20 6e 65 77 6c 69 6e 65 | 2e 0a 57 69 74 68 20 70 | newline|..With p|
|00005140| 72 65 66 69 78 20 61 72 | 67 75 6d 65 6e 74 2c 20 |refix ar|gument, |
|00005150| 6b 69 6c 6c 20 74 68 61 | 74 20 6d 61 6e 79 20 6c |kill tha|t many l|
|00005160| 69 6e 65 73 20 66 72 6f | 6d 20 70 6f 69 6e 74 2e |ines fro|m point.|
|00005170| 0a 4e 65 67 61 74 69 76 | 65 20 61 72 67 75 6d 65 |.Negativ|e argume|
|00005180| 6e 74 73 20 6b 69 6c 6c | 20 6c 69 6e 65 73 20 62 |nts kill| lines b|
|00005190| 61 63 6b 77 61 72 64 2e | 0a 0a 57 68 65 6e 20 63 |ackward.|..When c|
|000051a0| 61 6c 6c 69 6e 67 20 66 | 72 6f 6d 20 61 20 70 72 |alling f|rom a pr|
|000051b0| 6f 67 72 61 6d 2c 20 6e | 69 6c 20 6d 65 61 6e 73 |ogram, n|il means|
|000051c0| 20 5c 22 6e 6f 20 61 72 | 67 5c 22 2c 0a 61 20 6e | \"no ar|g\",.a n|
|000051d0| 75 6d 62 65 72 20 63 6f | 75 6e 74 73 20 61 73 20 |umber co|unts as |
|000051e0| 61 20 70 72 65 66 69 78 | 20 61 72 67 2e 0a 0a 49 |a prefix| arg...I|
|000051f0| 66 20 60 6b 69 6c 6c 2d | 77 68 6f 6c 65 2d 6c 69 |f `kill-|whole-li|
|00005200| 6e 65 27 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |ne' is n|on-nil, |
|00005210| 74 68 65 6e 20 6b 69 6c | 6c 20 74 68 65 20 77 68 |then kil|l the wh|
|00005220| 6f 6c 65 20 6c 69 6e 65 | 0a 77 68 65 6e 20 67 69 |ole line|.when gi|
|00005230| 76 65 6e 20 6e 6f 20 61 | 72 67 75 6d 65 6e 74 20 |ven no a|rgument |
|00005240| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00005250| 20 6f 66 20 61 20 6c 69 | 6e 65 2e 22 20 22 50 22 | of a li|ne." "P"|
|00005260| 5d 29 0a 28 64 65 66 76 | 61 72 20 69 6e 74 65 72 |]).(defv|ar inter|
|00005270| 70 72 6f 67 72 61 6d 2d | 63 75 74 2d 66 75 6e 63 |program-|cut-func|
|00005280| 74 69 6f 6e 20 6e 69 6c | 20 22 5c 0a 46 75 6e 63 |tion nil| "\.Func|
|00005290| 74 69 6f 6e 20 74 6f 20 | 63 61 6c 6c 20 74 6f 20 |tion to |call to |
|000052a0| 6d 61 6b 65 20 61 20 6b | 69 6c 6c 65 64 20 72 65 |make a k|illed re|
|000052b0| 67 69 6f 6e 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |gion ava|ilable t|
|000052c0| 6f 20 6f 74 68 65 72 20 | 70 72 6f 67 72 61 6d 73 |o other |programs|
|000052d0| 2e 0a 0a 4d 6f 73 74 20 | 77 69 6e 64 6f 77 20 73 |...Most |window s|
|000052e0| 79 73 74 65 6d 73 20 70 | 72 6f 76 69 64 65 20 73 |ystems p|rovide s|
|000052f0| 6f 6d 65 20 73 6f 72 74 | 20 6f 66 20 66 61 63 69 |ome sort| of faci|
|00005300| 6c 69 74 79 20 66 6f 72 | 20 63 75 74 74 69 6e 67 |lity for| cutting|
|00005310| 20 61 6e 64 0a 70 61 73 | 74 69 6e 67 20 74 65 78 | and.pas|ting tex|
|00005320| 74 20 62 65 74 77 65 65 | 6e 20 74 68 65 20 77 69 |t betwee|n the wi|
|00005330| 6e 64 6f 77 73 20 6f 66 | 20 64 69 66 66 65 72 65 |ndows of| differe|
|00005340| 6e 74 20 70 72 6f 67 72 | 61 6d 73 2e 0a 54 68 69 |nt progr|ams..Thi|
|00005350| 73 20 76 61 72 69 61 62 | 6c 65 20 68 6f 6c 64 73 |s variab|le holds|
|00005360| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 | a funct|ion that|
|00005370| 20 45 6d 61 63 73 20 63 | 61 6c 6c 73 20 77 68 65 | Emacs c|alls whe|
|00005380| 6e 65 76 65 72 20 74 65 | 78 74 0a 69 73 20 70 75 |never te|xt.is pu|
|00005390| 74 20 69 6e 20 74 68 65 | 20 6b 69 6c 6c 20 72 69 |t in the| kill ri|
|000053a0| 6e 67 2c 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |ng, to m|ake the |
|000053b0| 6e 65 77 20 6b 69 6c 6c | 20 61 76 61 69 6c 61 62 |new kill| availab|
|000053c0| 6c 65 20 74 6f 20 6f 74 | 68 65 72 0a 70 72 6f 67 |le to ot|her.prog|
|000053d0| 72 61 6d 73 2e 0a 0a 54 | 68 65 20 66 75 6e 63 74 |rams...T|he funct|
|000053e0| 69 6f 6e 20 74 61 6b 65 | 73 20 6f 6e 65 20 6f 72 |ion take|s one or|
|000053f0| 20 74 77 6f 20 61 72 67 | 75 6d 65 6e 74 73 2e 0a | two arg|uments..|
|00005400| 54 68 65 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |The firs|t argume|
|00005410| 6e 74 2c 20 54 45 58 54 | 2c 20 69 73 20 61 20 73 |nt, TEXT|, is a s|
|00005420| 74 72 69 6e 67 20 63 6f | 6e 74 61 69 6e 69 6e 67 |tring co|ntaining|
|00005430| 0a 74 68 65 20 74 65 78 | 74 20 77 68 69 63 68 20 |.the tex|t which |
|00005440| 73 68 6f 75 6c 64 20 62 | 65 20 6d 61 64 65 20 61 |should b|e made a|
|00005450| 76 61 69 6c 61 62 6c 65 | 2e 0a 54 68 65 20 73 65 |vailable|..The se|
|00005460| 63 6f 6e 64 2c 20 50 55 | 53 48 2c 20 69 66 20 6e |cond, PU|SH, if n|
|00005470| 6f 6e 2d 6e 69 6c 20 6d | 65 61 6e 73 20 74 68 69 |on-nil m|eans thi|
|00005480| 73 20 69 73 20 61 20 5c | 22 6e 65 77 5c 22 20 6b |s is a \|"new\" k|
|00005490| 69 6c 6c 3b 0a 6e 69 6c | 20 6d 65 61 6e 73 20 61 |ill;.nil| means a|
|000054a0| 70 70 65 6e 64 69 6e 67 | 20 74 6f 20 61 6e 20 5c |ppending| to an \|
|000054b0| 22 6f 6c 64 5c 22 20 6b | 69 6c 6c 2e 22 29 0a 28 |"old\" k|ill.").(|
|000054c0| 64 65 66 76 61 72 20 69 | 6e 74 65 72 70 72 6f 67 |defvar i|nterprog|
|000054d0| 72 61 6d 2d 70 61 73 74 | 65 2d 66 75 6e 63 74 69 |ram-past|e-functi|
|000054e0| 6f 6e 20 6e 69 6c 20 22 | 5c 0a 46 75 6e 63 74 69 |on nil "|\.Functi|
|000054f0| 6f 6e 20 74 6f 20 63 61 | 6c 6c 20 74 6f 20 67 65 |on to ca|ll to ge|
|00005500| 74 20 74 65 78 74 20 63 | 75 74 20 66 72 6f 6d 20 |t text c|ut from |
|00005510| 6f 74 68 65 72 20 70 72 | 6f 67 72 61 6d 73 2e 0a |other pr|ograms..|
|00005520| 0a 4d 6f 73 74 20 77 69 | 6e 64 6f 77 20 73 79 73 |.Most wi|ndow sys|
|00005530| 74 65 6d 73 20 70 72 6f | 76 69 64 65 20 73 6f 6d |tems pro|vide som|
|00005540| 65 20 73 6f 72 74 20 6f | 66 20 66 61 63 69 6c 69 |e sort o|f facili|
|00005550| 74 79 20 66 6f 72 20 63 | 75 74 74 69 6e 67 20 61 |ty for c|utting a|
|00005560| 6e 64 0a 70 61 73 74 69 | 6e 67 20 74 65 78 74 20 |nd.pasti|ng text |
|00005570| 62 65 74 77 65 65 6e 20 | 74 68 65 20 77 69 6e 64 |between |the wind|
|00005580| 6f 77 73 20 6f 66 20 64 | 69 66 66 65 72 65 6e 74 |ows of d|ifferent|
|00005590| 20 70 72 6f 67 72 61 6d | 73 2e 0a 54 68 69 73 20 | program|s..This |
|000055a0| 76 61 72 69 61 62 6c 65 | 20 68 6f 6c 64 73 20 61 |variable| holds a|
|000055b0| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 45 | functio|n that E|
|000055c0| 6d 61 63 73 20 63 61 6c | 6c 73 20 74 6f 20 6f 62 |macs cal|ls to ob|
|000055d0| 74 61 69 6e 0a 74 65 78 | 74 20 74 68 61 74 20 6f |tain.tex|t that o|
|000055e0| 74 68 65 72 20 70 72 6f | 67 72 61 6d 73 20 68 61 |ther pro|grams ha|
|000055f0| 76 65 20 70 72 6f 76 69 | 64 65 64 20 66 6f 72 20 |ve provi|ded for |
|00005600| 70 61 73 74 69 6e 67 2e | 0a 0a 54 68 65 20 66 75 |pasting.|..The fu|
|00005610| 6e 63 74 69 6f 6e 20 73 | 68 6f 75 6c 64 20 62 65 |nction s|hould be|
|00005620| 20 63 61 6c 6c 65 64 20 | 77 69 74 68 20 6e 6f 20 | called |with no |
|00005630| 61 72 67 75 6d 65 6e 74 | 73 2e 20 20 49 66 20 74 |argument|s. If t|
|00005640| 68 65 20 66 75 6e 63 74 | 69 6f 6e 0a 72 65 74 75 |he funct|ion.retu|
|00005650| 72 6e 73 20 6e 69 6c 2c | 20 74 68 65 6e 20 6e 6f |rns nil,| then no|
|00005660| 20 6f 74 68 65 72 20 70 | 72 6f 67 72 61 6d 20 68 | other p|rogram h|
|00005670| 61 73 20 70 72 6f 76 69 | 64 65 64 20 73 75 63 68 |as provi|ded such|
|00005680| 20 74 65 78 74 2c 20 61 | 6e 64 20 74 68 65 20 74 | text, a|nd the t|
|00005690| 6f 70 0a 6f 66 20 74 68 | 65 20 45 6d 61 63 73 20 |op.of th|e Emacs |
|000056a0| 6b 69 6c 6c 20 72 69 6e | 67 20 73 68 6f 75 6c 64 |kill rin|g should|
|000056b0| 20 62 65 20 75 73 65 64 | 2e 20 20 49 66 20 74 68 | be used|. If th|
|000056c0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 74 75 72 |e functi|on retur|
|000056d0| 6e 73 20 61 0a 73 74 72 | 69 6e 67 2c 20 74 68 61 |ns a.str|ing, tha|
|000056e0| 74 20 73 74 72 69 6e 67 | 20 73 68 6f 75 6c 64 20 |t string| should |
|000056f0| 62 65 20 70 75 74 20 69 | 6e 20 74 68 65 20 6b 69 |be put i|n the ki|
|00005700| 6c 6c 20 72 69 6e 67 20 | 61 73 20 74 68 65 20 6c |ll ring |as the l|
|00005710| 61 74 65 73 74 20 6b 69 | 6c 6c 2e 0a 0a 4e 6f 74 |atest ki|ll...Not|
|00005720| 65 20 74 68 61 74 20 74 | 68 65 20 66 75 6e 63 74 |e that t|he funct|
|00005730| 69 6f 6e 20 73 68 6f 75 | 6c 64 20 72 65 74 75 72 |ion shou|ld retur|
|00005740| 6e 20 61 20 73 74 72 69 | 6e 67 20 6f 6e 6c 79 20 |n a stri|ng only |
|00005750| 69 66 20 61 20 70 72 6f | 67 72 61 6d 20 6f 74 68 |if a pro|gram oth|
|00005760| 65 72 0a 74 68 61 6e 20 | 45 6d 61 63 73 20 68 61 |er.than |Emacs ha|
|00005770| 73 20 70 72 6f 76 69 64 | 65 64 20 61 20 73 74 72 |s provid|ed a str|
|00005780| 69 6e 67 20 66 6f 72 20 | 70 61 73 74 69 6e 67 3b |ing for |pasting;|
|00005790| 20 69 66 20 45 6d 61 63 | 73 20 70 72 6f 76 69 64 | if Emac|s provid|
|000057a0| 65 64 20 74 68 65 0a 6d | 6f 73 74 20 72 65 63 65 |ed the.m|ost rece|
|000057b0| 6e 74 20 73 74 72 69 6e | 67 2c 20 74 68 65 20 66 |nt strin|g, the f|
|000057c0| 75 6e 63 74 69 6f 6e 20 | 73 68 6f 75 6c 64 20 72 |unction |should r|
|000057d0| 65 74 75 72 6e 20 6e 69 | 6c 2e 20 20 49 66 20 69 |eturn ni|l. If i|
|000057e0| 74 20 69 73 0a 64 69 66 | 66 69 63 75 6c 74 20 74 |t is.dif|ficult t|
|000057f0| 6f 20 74 65 6c 6c 20 77 | 68 65 74 68 65 72 20 45 |o tell w|hether E|
|00005800| 6d 61 63 73 20 6f 72 20 | 73 6f 6d 65 20 6f 74 68 |macs or |some oth|
|00005810| 65 72 20 70 72 6f 67 72 | 61 6d 20 70 72 6f 76 69 |er progr|am provi|
|00005820| 64 65 64 20 74 68 65 0a | 63 75 72 72 65 6e 74 20 |ded the.|current |
|00005830| 73 74 72 69 6e 67 2c 20 | 69 74 20 69 73 20 70 72 |string, |it is pr|
|00005840| 6f 62 61 62 6c 79 20 67 | 6f 6f 64 20 65 6e 6f 75 |obably g|ood enou|
|00005850| 67 68 20 74 6f 20 72 65 | 74 75 72 6e 20 6e 69 6c |gh to re|turn nil|
|00005860| 20 69 66 20 74 68 65 20 | 73 74 72 69 6e 67 0a 69 | if the |string.i|
|00005870| 73 20 65 71 75 61 6c 20 | 28 61 63 63 6f 72 64 69 |s equal |(accordi|
|00005880| 6e 67 20 74 6f 20 60 73 | 74 72 69 6e 67 3d 27 29 |ng to `s|tring=')|
|00005890| 20 74 6f 20 74 68 65 20 | 6c 61 73 74 20 74 65 78 | to the |last tex|
|000058a0| 74 20 45 6d 61 63 73 20 | 70 72 6f 76 69 64 65 64 |t Emacs |provided|
|000058b0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 6b 69 6c 6c |.").(def|var kill|
|000058c0| 2d 72 69 6e 67 20 6e 69 | 6c 20 22 5c 0a 4c 69 73 |-ring ni|l "\.Lis|
|000058d0| 74 20 6f 66 20 6b 69 6c | 6c 65 64 20 74 65 78 74 |t of kil|led text|
|000058e0| 20 73 65 71 75 65 6e 63 | 65 73 2e 0a 53 69 6e 63 | sequenc|es..Sinc|
|000058f0| 65 20 74 68 65 20 6b 69 | 6c 6c 20 72 69 6e 67 20 |e the ki|ll ring |
|00005900| 69 73 20 73 75 70 70 6f | 73 65 64 20 74 6f 20 69 |is suppo|sed to i|
|00005910| 6e 74 65 72 61 63 74 20 | 6e 69 63 65 6c 79 20 77 |nteract |nicely w|
|00005920| 69 74 68 20 63 75 74 2d | 61 6e 64 2d 70 61 73 74 |ith cut-|and-past|
|00005930| 65 0a 66 61 63 69 6c 69 | 74 69 65 73 20 6f 66 66 |e.facili|ties off|
|00005940| 65 72 65 64 20 62 79 20 | 77 69 6e 64 6f 77 20 73 |ered by |window s|
|00005950| 79 73 74 65 6d 73 2c 20 | 75 73 65 20 6f 66 20 74 |ystems, |use of t|
|00005960| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 73 68 6f |his vari|able sho|
|00005970| 75 6c 64 0a 69 6e 74 65 | 72 61 63 74 20 6e 69 63 |uld.inte|ract nic|
|00005980| 65 6c 79 20 77 69 74 68 | 20 60 69 6e 74 65 72 70 |ely with| `interp|
|00005990| 72 6f 67 72 61 6d 2d 63 | 75 74 2d 66 75 6e 63 74 |rogram-c|ut-funct|
|000059a0| 69 6f 6e 27 20 61 6e 64 | 0a 60 69 6e 74 65 72 70 |ion' and|.`interp|
|000059b0| 72 6f 67 72 61 6d 2d 70 | 61 73 74 65 2d 66 75 6e |rogram-p|aste-fun|
|000059c0| 63 74 69 6f 6e 27 2e 20 | 20 54 68 65 20 66 75 6e |ction'. | The fun|
|000059d0| 63 74 69 6f 6e 73 20 60 | 6b 69 6c 6c 2d 6e 65 77 |ctions `|kill-new|
|000059e0| 27 2c 0a 60 6b 69 6c 6c | 2d 61 70 70 65 6e 64 27 |',.`kill|-append'|
|000059f0| 2c 20 61 6e 64 20 60 63 | 75 72 72 65 6e 74 2d 6b |, and `c|urrent-k|
|00005a00| 69 6c 6c 27 20 61 72 65 | 20 73 75 70 70 6f 73 65 |ill' are| suppose|
|00005a10| 64 20 74 6f 20 69 6d 70 | 6c 65 6d 65 6e 74 20 74 |d to imp|lement t|
|00005a20| 68 69 73 0a 69 6e 74 65 | 72 61 63 74 69 6f 6e 3b |his.inte|raction;|
|00005a30| 20 79 6f 75 20 6d 61 79 | 20 77 61 6e 74 20 74 6f | you may| want to|
|00005a40| 20 75 73 65 20 74 68 65 | 6d 20 69 6e 73 74 65 61 | use the|m instea|
|00005a50| 64 20 6f 66 20 6d 61 6e | 69 70 75 6c 61 74 69 6e |d of man|ipulatin|
|00005a60| 67 20 74 68 65 20 6b 69 | 6c 6c 0a 72 69 6e 67 20 |g the ki|ll.ring |
|00005a70| 64 69 72 65 63 74 6c 79 | 2e 22 29 0a 28 64 65 66 |directly|.").(def|
|00005a80| 63 6f 6e 73 74 20 6b 69 | 6c 6c 2d 72 69 6e 67 2d |const ki|ll-ring-|
|00005a90| 6d 61 78 20 33 30 20 22 | 5c 0a 2a 4d 61 78 69 6d |max 30 "|\.*Maxim|
|00005aa0| 75 6d 20 6c 65 6e 67 74 | 68 20 6f 66 20 6b 69 6c |um lengt|h of kil|
|00005ab0| 6c 20 72 69 6e 67 20 62 | 65 66 6f 72 65 20 6f 6c |l ring b|efore ol|
|00005ac0| 64 65 73 74 20 65 6c 65 | 6d 65 6e 74 73 20 61 72 |dest ele|ments ar|
|00005ad0| 65 20 74 68 72 6f 77 6e | 20 61 77 61 79 2e 22 29 |e thrown| away.")|
|00005ae0| 0a 28 64 65 66 76 61 72 | 20 6b 69 6c 6c 2d 72 69 |.(defvar| kill-ri|
|00005af0| 6e 67 2d 79 61 6e 6b 2d | 70 6f 69 6e 74 65 72 20 |ng-yank-|pointer |
|00005b00| 6e 69 6c 20 22 5c 0a 54 | 68 65 20 74 61 69 6c 20 |nil "\.T|he tail |
|00005b10| 6f 66 20 74 68 65 20 6b | 69 6c 6c 20 72 69 6e 67 |of the k|ill ring|
|00005b20| 20 77 68 6f 73 65 20 63 | 61 72 20 69 73 20 74 68 | whose c|ar is th|
|00005b30| 65 20 6c 61 73 74 20 74 | 68 69 6e 67 20 79 61 6e |e last t|hing yan|
|00005b40| 6b 65 64 2e 22 29 0a 28 | 64 65 66 61 6c 69 61 73 |ked.").(|defalias|
|00005b50| 20 27 6b 69 6c 6c 2d 6e | 65 77 20 23 5b 28 73 74 | 'kill-n|ew #[(st|
|00005b60| 72 69 6e 67 29 20 22 08 | 09 42 89 11 47 5c 6e 56 |ring) ".|.B..G\nV|
|00005b70| 83 12 00 5c 6e 53 09 9b | c3 a1 88 09 14 0d 85 1c |...\nS..|........|
|00005b80| 00 0d 08 c6 5c 22 87 22 | 20 5b 73 74 72 69 6e 67 |....\"."| [string|
|00005b90| 20 6b 69 6c 6c 2d 72 69 | 6e 67 20 6b 69 6c 6c 2d | kill-ri|ng kill-|
|00005ba0| 72 69 6e 67 2d 6d 61 78 | 20 6e 69 6c 20 6b 69 6c |ring-max| nil kil|
|00005bb0| 6c 2d 72 69 6e 67 2d 79 | 61 6e 6b 2d 70 6f 69 6e |l-ring-y|ank-poin|
|00005bc0| 74 65 72 20 69 6e 74 65 | 72 70 72 6f 67 72 61 6d |ter inte|rprogram|
|00005bd0| 2d 63 75 74 2d 66 75 6e | 63 74 69 6f 6e 20 74 5d |-cut-fun|ction t]|
|00005be0| 20 34 20 22 5c 0a 4d 61 | 6b 65 20 53 54 52 49 4e | 4 "\.Ma|ke STRIN|
|00005bf0| 47 20 74 68 65 20 6c 61 | 74 65 73 74 20 6b 69 6c |G the la|test kil|
|00005c00| 6c 20 69 6e 20 74 68 65 | 20 6b 69 6c 6c 20 72 69 |l in the| kill ri|
|00005c10| 6e 67 2e 0a 53 65 74 20 | 74 68 65 20 6b 69 6c 6c |ng..Set |the kill|
|00005c20| 2d 72 69 6e 67 2d 79 61 | 6e 6b 20 70 6f 69 6e 74 |-ring-ya|nk point|
|00005c30| 65 72 20 74 6f 20 70 6f | 69 6e 74 20 74 6f 20 69 |er to po|int to i|
|00005c40| 74 2e 0a 49 66 20 60 69 | 6e 74 65 72 70 72 6f 67 |t..If `i|nterprog|
|00005c50| 72 61 6d 2d 63 75 74 2d | 66 75 6e 63 74 69 6f 6e |ram-cut-|function|
|00005c60| 27 20 69 73 20 6e 6f 6e | 2d 6e 69 6c 2c 20 61 70 |' is non|-nil, ap|
|00005c70| 70 6c 79 20 69 74 20 74 | 6f 20 53 54 52 49 4e 47 |ply it t|o STRING|
|00005c80| 2e 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |."]).(de|falias '|
|00005c90| 6b 69 6c 6c 2d 61 70 70 | 65 6e 64 20 23 5b 28 73 |kill-app|end #[(s|
|00005ca0| 74 72 69 6e 67 20 62 65 | 66 6f 72 65 2d 70 29 20 |tring be|fore-p) |
|00005cb0| 22 08 09 83 5c 66 00 5c | 6e 08 40 50 82 10 00 08 |"...\f.\|n.@P....|
|00005cc0| 40 5c 6e 50 a0 88 0b 85 | 1a 00 0b 08 40 21 87 22 |@\nP....|....@!."|
|00005cd0| 20 5b 6b 69 6c 6c 2d 72 | 69 6e 67 20 62 65 66 6f | [kill-r|ing befo|
|00005ce0| 72 65 2d 70 20 73 74 72 | 69 6e 67 20 69 6e 74 65 |re-p str|ing inte|
|00005cf0| 72 70 72 6f 67 72 61 6d | 2d 63 75 74 2d 66 75 6e |rprogram|-cut-fun|
|00005d00| 63 74 69 6f 6e 5d 20 33 | 20 22 5c 0a 41 70 70 65 |ction] 3| "\.Appe|
|00005d10| 6e 64 20 53 54 52 49 4e | 47 20 74 6f 20 74 68 65 |nd STRIN|G to the|
|00005d20| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 6c 61 74 65 | end of |the late|
|00005d30| 73 74 20 6b 69 6c 6c 20 | 69 6e 20 74 68 65 20 6b |st kill |in the k|
|00005d40| 69 6c 6c 20 72 69 6e 67 | 2e 0a 49 66 20 42 45 46 |ill ring|..If BEF|
|00005d50| 4f 52 45 2d 50 20 69 73 | 20 6e 6f 6e 2d 6e 69 6c |ORE-P is| non-nil|
|00005d60| 2c 20 70 72 65 70 65 6e | 64 20 53 54 52 49 4e 47 |, prepen|d STRING|
|00005d70| 20 74 6f 20 74 68 65 20 | 6b 69 6c 6c 2e 0a 49 66 | to the |kill..If|
|00005d80| 20 60 69 6e 74 65 72 70 | 72 6f 67 72 61 6d 2d 63 | `interp|rogram-c|
|00005d90| 75 74 2d 66 75 6e 63 74 | 69 6f 6e 27 20 69 73 20 |ut-funct|ion' is |
|00005da0| 73 65 74 2c 20 70 61 73 | 73 20 74 68 65 20 72 65 |set, pas|s the re|
|00005db0| 73 75 6c 74 69 6e 67 20 | 6b 69 6c 6c 20 74 6f 0a |sulting |kill to.|
|00005dc0| 69 74 2e 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |it."]).(|defalias|
|00005dd0| 20 27 63 75 72 72 65 6e | 74 2d 6b 69 6c 6c 20 23 | 'curren|t-kill #|
|00005de0| 5b 28 6e 20 26 6f 70 74 | 69 6f 6e 61 6c 20 64 6f |[(n &opt|ional do|
|00005df0| 2d 6e 6f 74 2d 6d 6f 76 | 65 29 20 22 08 c1 55 85 |-not-mov|e) "..U.|
|00005e00| 5c 66 00 5c 6e 85 5c 66 | 00 5c 6e 20 89 1b 83 1c |\f.\n.\f|.\n ....|
|00005e10| 00 c4 1d c6 0b 21 88 29 | 0b 82 41 00 0e 07 84 25 |.....!.)|..A....%|
|00005e20| 00 c8 c9 21 88 ca 08 0e | 0b 47 5a 0e 07 47 5c 22 |...!....|.GZ..G\"|
|00005e30| 0e 07 9b 1e 5c 66 0e 0d | 84 3d 00 0e 5c 66 16 0b |....\f..|.=..\f..|
|00005e40| 0e 5c 66 40 29 29 87 22 | 20 5b 6e 20 30 20 69 6e |.\f@))."| [n 0 in|
|00005e50| 74 65 72 70 72 6f 67 72 | 61 6d 2d 70 61 73 74 65 |terprogr|am-paste|
|00005e60| 2d 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 65 72 70 |-functio|n interp|
|00005e70| 72 6f 67 72 61 6d 2d 70 | 61 73 74 65 20 6e 69 6c |rogram-p|aste nil|
|00005e80| 20 69 6e 74 65 72 70 72 | 6f 67 72 61 6d 2d 63 75 | interpr|ogram-cu|
|00005e90| 74 2d 66 75 6e 63 74 69 | 6f 6e 20 6b 69 6c 6c 2d |t-functi|on kill-|
|00005ea0| 6e 65 77 20 6b 69 6c 6c | 2d 72 69 6e 67 20 65 72 |new kill|-ring er|
|00005eb0| 72 6f 72 20 22 4b 69 6c | 6c 20 72 69 6e 67 20 69 |ror "Kil|l ring i|
|00005ec0| 73 20 65 6d 70 74 79 22 | 20 6d 6f 64 20 6b 69 6c |s empty"| mod kil|
|00005ed0| 6c 2d 72 69 6e 67 2d 79 | 61 6e 6b 2d 70 6f 69 6e |l-ring-y|ank-poin|
|00005ee0| 74 65 72 20 41 52 47 74 | 68 2d 6b 69 6c 6c 2d 65 |ter ARGt|h-kill-e|
|00005ef0| 6c 65 6d 65 6e 74 20 64 | 6f 2d 6e 6f 74 2d 6d 6f |lement d|o-not-mo|
|00005f00| 76 65 5d 20 34 20 22 5c | 0a 52 6f 74 61 74 65 20 |ve] 4 "\|.Rotate |
|00005f10| 74 68 65 20 79 61 6e 6b | 69 6e 67 20 70 6f 69 6e |the yank|ing poin|
|00005f20| 74 20 62 79 20 4e 20 70 | 6c 61 63 65 73 2c 20 61 |t by N p|laces, a|
|00005f30| 6e 64 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 74 |nd then |return t|
|00005f40| 68 61 74 20 6b 69 6c 6c | 2e 0a 49 66 20 4e 20 69 |hat kill|..If N i|
|00005f50| 73 20 7a 65 72 6f 2c 20 | 60 69 6e 74 65 72 70 72 |s zero, |`interpr|
|00005f60| 6f 67 72 61 6d 2d 70 61 | 73 74 65 2d 66 75 6e 63 |ogram-pa|ste-func|
|00005f70| 74 69 6f 6e 27 20 69 73 | 20 73 65 74 2c 20 61 6e |tion' is| set, an|
|00005f80| 64 20 63 61 6c 6c 69 6e | 67 20 69 74 0a 72 65 74 |d callin|g it.ret|
|00005f90| 75 72 6e 73 20 61 20 73 | 74 72 69 6e 67 2c 20 74 |urns a s|tring, t|
|00005fa0| 68 65 6e 20 74 68 61 74 | 20 73 74 72 69 6e 67 20 |hen that| string |
|00005fb0| 69 73 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |is added| to the |
|00005fc0| 66 72 6f 6e 74 20 6f 66 | 20 74 68 65 0a 6b 69 6c |front of| the.kil|
|00005fd0| 6c 20 72 69 6e 67 20 61 | 6e 64 20 72 65 74 75 72 |l ring a|nd retur|
|00005fe0| 6e 65 64 20 61 73 20 74 | 68 65 20 6c 61 74 65 73 |ned as t|he lates|
|00005ff0| 74 20 6b 69 6c 6c 2e 0a | 49 66 20 6f 70 74 69 6f |t kill..|If optio|
|00006000| 6e 61 6c 20 61 72 67 20 | 44 4f 2d 4e 4f 54 2d 4d |nal arg |DO-NOT-M|
|00006010| 4f 56 45 20 69 73 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |OVE is n|on-nil, |
|00006020| 74 68 65 6e 20 64 6f 6e | 27 74 20 61 63 74 75 61 |then don|'t actua|
|00006030| 6c 6c 79 20 6d 6f 76 65 | 20 74 68 65 20 0a 79 61 |lly move| the .ya|
|00006040| 6e 6b 69 6e 67 20 70 6f | 69 6e 74 3b 20 6a 75 73 |nking po|int; jus|
|00006050| 74 20 72 65 74 75 72 6e | 20 74 68 65 20 4e 74 68 |t return| the Nth|
|00006060| 20 6b 69 6c 6c 20 66 6f | 72 77 61 72 64 2e 22 5d | kill fo|rward."]|
|00006070| 29 0a 28 64 65 66 76 61 | 72 20 6b 69 6c 6c 2d 72 |).(defva|r kill-r|
|00006080| 65 61 64 2d 6f 6e 6c 79 | 2d 6f 6b 20 6e 69 6c 20 |ead-only|-ok nil |
|00006090| 22 5c 0a 2a 4e 6f 6e 2d | 6e 69 6c 20 6d 65 61 6e |"\.*Non-|nil mean|
|000060a0| 73 20 64 6f 6e 27 74 20 | 73 69 67 6e 61 6c 20 61 |s don't |signal a|
|000060b0| 6e 20 65 72 72 6f 72 20 | 66 6f 72 20 6b 69 6c 6c |n error |for kill|
|000060c0| 69 6e 67 20 72 65 61 64 | 2d 6f 6e 6c 79 20 74 65 |ing read|-only te|
|000060d0| 78 74 2e 22 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |xt.").(d|efalias |
|000060e0| 27 6b 69 6c 6c 2d 72 65 | 67 69 6f 6e 20 23 5b 28 |'kill-re|gion #[(|
|000060f0| 62 65 67 20 65 6e 64 29 | 20 22 08 83 08 00 09 83 |beg end)| "......|
|00006100| 11 00 c2 0b 5c 66 c5 c6 | 24 83 5c 22 00 c7 0b 5c |....\f..|$.\"...\|
|00006110| 66 5c 22 88 0e 08 83 1f | 00 c9 ca 21 87 cb 20 87 |f\".....|...!.. .|
|00006120| 0e 5c 66 cd 3d 84 6d 00 | 0e 0e cf 3d 84 6d 00 0b |.\f.=.m.|...=.m..|
|00006130| 5c 66 9a 84 6d 00 0b 5c | 66 5d 0b 5c 66 5e 5a d0 |\f..m..\|f].\f^Z.|
|00006140| 5c 5c 0e 5c 66 c6 1e 11 | 1e 12 1e 13 0b 5c 66 7c |\\.\f...|.....\f||
|00006150| 88 0e 5c 66 89 16 11 40 | 40 3b 84 60 00 0e 11 41 |..\f...@|@;.`...A|
|00006160| 89 16 11 82 51 00 d4 0e | 11 40 40 21 88 cf 89 16 |....Q...|.@@!....|
|00006170| 15 2b 87 c7 0b 5c 66 5c | 22 88 0b 5c 66 7c 87 22 |.+...\f\|"..\f|."|
|00006180| 20 5b 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e | [buffer|-read-on|
|00006190| 6c 79 20 69 6e 68 69 62 | 69 74 2d 72 65 61 64 2d |ly inhib|it-read-|
|000061a0| 6f 6e 6c 79 20 74 65 78 | 74 2d 70 72 6f 70 65 72 |only tex|t-proper|
|000061b0| 74 79 2d 6e 6f 74 2d 61 | 6c 6c 20 62 65 67 20 65 |ty-not-a|ll beg e|
|000061c0| 6e 64 20 72 65 61 64 2d | 6f 6e 6c 79 20 6e 69 6c |nd read-|only nil|
|000061d0| 20 63 6f 70 79 2d 72 65 | 67 69 6f 6e 2d 61 73 2d | copy-re|gion-as-|
|000061e0| 6b 69 6c 6c 20 6b 69 6c | 6c 2d 72 65 61 64 2d 6f |kill kil|l-read-o|
|000061f0| 6e 6c 79 2d 6f 6b 20 6d | 65 73 73 61 67 65 20 22 |nly-ok m|essage "|
|00006200| 52 65 61 64 20 6f 6e 6c | 79 20 74 65 78 74 20 63 |Read onl|y text c|
|00006210| 6f 70 69 65 64 20 74 6f | 20 6b 69 6c 6c 20 72 69 |opied to| kill ri|
|00006220| 6e 67 22 20 62 61 72 66 | 2d 69 66 2d 62 75 66 66 |ng" barf|-if-buff|
|00006230| 65 72 2d 72 65 61 64 2d | 6f 6e 6c 79 20 62 75 66 |er-read-|only buf|
|00006240| 66 65 72 2d 75 6e 64 6f | 2d 6c 69 73 74 20 74 20 |fer-undo|-list t |
|00006250| 6c 61 73 74 2d 63 6f 6d | 6d 61 6e 64 20 6b 69 6c |last-com|mand kil|
|00006260| 6c 2d 72 65 67 69 6f 6e | 20 31 30 30 20 74 61 69 |l-region| 100 tai|
|00006270| 6c 20 6f 6c 64 2d 6c 69 | 73 74 20 75 6e 64 6f 2d |l old-li|st undo-|
|00006280| 73 74 72 6f 6e 67 2d 6c | 69 6d 69 74 20 6b 69 6c |strong-l|imit kil|
|00006290| 6c 2d 6e 65 77 20 74 68 | 69 73 2d 63 6f 6d 6d 61 |l-new th|is-comma|
|000062a0| 6e 64 5d 20 36 20 22 5c | 0a 4b 69 6c 6c 20 62 65 |nd] 6 "\|.Kill be|
|000062b0| 74 77 65 65 6e 20 70 6f | 69 6e 74 20 61 6e 64 20 |tween po|int and |
|000062c0| 6d 61 72 6b 2e 0a 54 68 | 65 20 74 65 78 74 20 69 |mark..Th|e text i|
|000062d0| 73 20 64 65 6c 65 74 65 | 64 20 62 75 74 20 73 61 |s delete|d but sa|
|000062e0| 76 65 64 20 69 6e 20 74 | 68 65 20 6b 69 6c 6c 20 |ved in t|he kill |
|000062f0| 72 69 6e 67 2e 0a 54 68 | 65 20 63 6f 6d 6d 61 6e |ring..Th|e comman|
|00006300| 64 20 5c 5c 5b 79 61 6e | 6b 5d 20 63 61 6e 20 72 |d \\[yan|k] can r|
|00006310| 65 74 72 69 65 76 65 20 | 69 74 20 66 72 6f 6d 20 |etrieve |it from |
|00006320| 74 68 65 72 65 2e 0a 28 | 49 66 20 79 6f 75 20 77 |there..(|If you w|
|00006330| 61 6e 74 20 74 6f 20 6b | 69 6c 6c 20 61 6e 64 20 |ant to k|ill and |
|00006340| 74 68 65 6e 20 79 61 6e | 6b 20 69 6d 6d 65 64 69 |then yan|k immedi|
|00006350| 61 74 65 6c 79 2c 20 75 | 73 65 20 5c 5c 5b 63 6f |ately, u|se \\[co|
|00006360| 70 79 2d 72 65 67 69 6f | 6e 2d 61 73 2d 6b 69 6c |py-regio|n-as-kil|
|00006370| 6c 5d 2e 29 0a 49 66 20 | 74 68 65 20 62 75 66 66 |l].).If |the buff|
|00006380| 65 72 20 69 73 20 72 65 | 61 64 2d 6f 6e 6c 79 2c |er is re|ad-only,|
|00006390| 20 45 6d 61 63 73 20 77 | 69 6c 6c 20 62 65 65 70 | Emacs w|ill beep|
|000063a0| 20 61 6e 64 20 72 65 66 | 72 61 69 6e 20 66 72 6f | and ref|rain fro|
|000063b0| 6d 20 64 65 6c 65 74 69 | 6e 67 0a 74 68 65 20 74 |m deleti|ng.the t|
|000063c0| 65 78 74 2c 20 62 75 74 | 20 70 75 74 20 74 68 65 |ext, but| put the|
|000063d0| 20 74 65 78 74 20 69 6e | 20 74 68 65 20 6b 69 6c | text in| the kil|
|000063e0| 6c 20 72 69 6e 67 20 61 | 6e 79 77 61 79 2e 20 20 |l ring a|nyway. |
|000063f0| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 0a |This mea|ns that.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.